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 ssl socket resend #412

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Fix ssl socket resend #412

merged 1 commit into from
Apr 9, 2024

Conversation

artygus
Copy link
Collaborator

@artygus artygus commented Apr 9, 2024

Set 2 flags for ssl connection:

  • SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER needed to properly support sm_resend, since buffer gets copied to new location for retries
  • SSL_MODE_ENABLE_PARTIAL_WRITE writes message in ~16kb chunks, which is more in line with current non-blocking architecture (basically imitates the behaviour of write())

Fixes #344

@artygus artygus merged commit 1c9e16f into master Apr 9, 2024
1 check passed
@artygus artygus deleted the ag/fix-ssl-socket-resend branch April 9, 2024 22:43
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.

iOS13 ios-webkit-debug-proxy will disconnected Once the Json is over 200k
1 participant