-
Notifications
You must be signed in to change notification settings - Fork 728
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
TDA-3417 crash in socket #3465
TDA-3417 crash in socket #3465
Conversation
connAck messages from AppSync come with a timeout in milliseconds for the client to kill the connection when it stays too long without receiving any messages, including keep-alive requests.
fix: reconnect to websocket on timeout
Upgrade to 0.53.0
update to 1.9.3
Updates Apollo to 1.9.3
TDA-3865: Update to Support Xcode 16
@ValeriiIamkovyi: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
👷 Deploy request for apollo-ios-docs pending review.Visit the deploys page to approve it
|
✅ Docs Preview ReadyNo new or changed pages found. |
We do not accept PRs directly to the 'apollo-ios' repo. All development is done through the 'apollo-ios-dev' repo, please see the CONTRIBUTING guide for more information. |
Summary
I've made several improvements to prevent crashes in this method:
Instead of converting
Data
toNSData
and back, we now work directly withData
. The conversion was unnecessary and could introduce memory management issues. TheData
append method is used for better efficiency and safety.Replaced
UnsafeRawPointer
withwithUnsafeBytes
to safely access the raw pointer, avoiding potential memory issues.Code review check list
Ticket
TDA-3417