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

fix: Assign websocket callback queue before connecting #529

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

calvincestari
Copy link
Member

Closes apollographql/apollo-ios#3466.

Assign the callback queue before connecting to prevent potential data race.

@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Oct 31, 2024

✅ Docs Preview Ready

No new or changed pages found.

Copy link

netlify bot commented Oct 31, 2024

Deploy Preview for apollo-ios-docc canceled.

Name Link
🔨 Latest commit bcf47d8
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docc/deploys/6723f09b27092300082aeefb

Copy link

netlify bot commented Oct 31, 2024

Deploy Preview for eclectic-pie-88a2ba canceled.

Name Link
🔨 Latest commit bcf47d8
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-pie-88a2ba/deploys/6723f09b9e563f0008ae3a20

@AnthonyMDev
Copy link
Contributor

This seems really difficult to test, so I don't think we need to add a test. But it might be a good idea to add a comment to ensure that nobody moves that code again.

@calvincestari calvincestari merged commit 5ee3bb7 into main Oct 31, 2024
36 of 37 checks passed
@calvincestari calvincestari deleted the fix/websocket-callback-queue-assignment branch October 31, 2024 22:51
BobaFetters pushed a commit to apollographql/apollo-ios that referenced this pull request Oct 31, 2024
BobaFetters pushed a commit that referenced this pull request Oct 31, 2024
0adf0250 fix: Assign websocket callback queue before connecting (#529)

git-subtree-dir: apollo-ios
git-subtree-split: 0adf0250e7f363345117766f3689e4c3e669c910
BobaFetters pushed a commit that referenced this pull request Oct 31, 2024
…fore connecting

git-subtree-dir: apollo-ios
git-subtree-mainline: 2ee7d7e
git-subtree-split: 0adf0250e7f363345117766f3689e4c3e669c910
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Websocket Data Race when stream connection fails
3 participants