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

TDA-3417 crash in socket #3465

Conversation

ValeriiIamkovyi
Copy link

Summary

I've made several improvements to prevent crashes in this method:

  • Instead of converting Data to NSData and back, we now work directly with Data. The conversion was unnecessary and could introduce memory management issues. The Data append method is used for better efficiency and safety.

  • Replaced UnsafeRawPointer with withUnsafeBytes to safely access the raw pointer, avoiding potential memory issues.

Code review check list

  • Comments - Fundamental architecture/workflows and non-obvious/quirky bits are commented
  • Accessibility - Tested via accessibility inspector
  • Accessibility - Tested via device's voice over
  • Generates no new warnings (Including SwiftLint)
  • Has tests

Ticket

TDA-3417

dangelillo-pgatour and others added 21 commits May 31, 2022 17:54
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
Updates Apollo to 1.9.3
TDA-3865: Update to Support Xcode 16
@apollo-cla
Copy link

@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/

Copy link

netlify bot commented Oct 25, 2024

👷 Deploy request for apollo-ios-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit b20ecfc

@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Oct 25, 2024

✅ Docs Preview Ready

No new or changed pages found.

Copy link
Contributor

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.

@github-actions github-actions bot closed this Oct 25, 2024
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.

6 participants