Skip to content

openssl shutdown, improve retries - #15321

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:openssl-shutdown-retries
Closed

openssl shutdown, improve retries#15321
icing wants to merge 1 commit into
curl:masterfrom
icing:openssl-shutdown-retries

Conversation

@icing

@icing icing commented Oct 17, 2024

Copy link
Copy Markdown
Contributor

Once SSL_shutdown() has been called, OpenSSL does not really seem to like it when it is called again and the other side has some final data to deliver.
Instead SSL_read() needs to be used solely, once the close notify has been sent from curl's side.

This has led to spurious CI errors in the pytest test_19_02 shutdown verifications.

Once SSL_shutdown() has been called, OpenSSL does not really
seem to like it when it is called again and the other side
has some finally data to deliver.
Instead SSL_read() needs to be used solely, once the close
notify has been sent from curl's side.
@github-actions github-actions Bot added the tests label Oct 17, 2024
@icing
icing requested a review from bagder October 17, 2024 13:29
@bagder bagder added the TLS label Oct 17, 2024
@bagder bagder closed this in b42eb27 Oct 17, 2024
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Once SSL_shutdown() has been called, OpenSSL does not really seem to
like it when it is called again and the other side has some finally data
to deliver.

Instead SSL_read() needs to be used solely, once the close notify has
been sent from curl's side.

Closes curl#15321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants