Skip to content

openssl, improve shutdown handling - #14375

Closed
icing wants to merge 2 commits into
curl:masterfrom
icing:openssl-shutdown
Closed

icing wants to merge 2 commits into
curl:masterfrom
icing:openssl-shutdown

Conversation

@icing

@icing icing commented Aug 4, 2024

Copy link
Copy Markdown
Contributor

Make sure that io_need is cleared and set at the filter operations. Add some more tracing for shutdown situations.

Improve shutdown handling for blocked sends. OpenSSL is a bit tricksy here that it only reports WANT_WRITE on SSL_shutdown(), but never on SSL_read() on blocked sends. So we need to use both.

At last, set SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER when available since we are not always retrying sends from the very same address, as testing showed.

Make sure that `io_need` is cleared and set at the filter operations.
Add some more tracing for shutdown situations.

Improve shutdown handling for blocked sends. OpenSSL is a bit tricksy
here that it only reports WANT_WRITE on SSL_shutdown(), but never on
SSL_read() on blocked sends. So we need to use both.

At last, set SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER when available since
we are not always retrying sends from the very same address, as testing
showed.
@github-actions github-actions Bot added the TLS label Aug 4, 2024
@icing
icing requested a review from bagder August 4, 2024 14:50
@bagder bagder closed this in 4494005 Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants