Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temp fix for a crash faced by client using proxy connection #1493

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maratal
Copy link
Collaborator

@maratal maratal commented Sep 5, 2022

Probably closes #1437

Explanation:
ARTSRProxyConnect object can potentially generate a proxy connection error even after initial success (or more than one error in a raw), which can depend on what proxy type is used, which will create a race condition: self->_proxyConnect = nil; deallocates ARTSRProxyConnect object on a _workQueue, and a subsequent call to _failWithError: on a io.ably.socketrocket.NetworkThread inside ARTSRProxyConnect will cause crash when it'll try to access self.

Explanation:
`ARTSRProxyConnect` object can potentially generate a proxy connection error even after initial success (or more than one error in a raw), which can depend on what proxy type is used, which will create a race condition: `self->_proxyConnect = nil;` deallocates `ARTSRProxyConnect` object on a `_workQueue`, and a subsequent call to `_failWithError:`  on a `io.ably.socketrocket.NetworkThread` inside `ARTSRProxyConnect` will cause crash when it'll try to access `self`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Crash in [ARTSRProxyConnect _failWithError]
1 participant