Skip to content

imap, upgrade tls fix#16213

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:imap-upgrade-tls-fix
Closed

imap, upgrade tls fix#16213
icing wants to merge 1 commit into
curl:masterfrom
icing:imap-upgrade-tls-fix

Conversation

@icing
Copy link
Copy Markdown
Contributor

@icing icing commented Feb 6, 2025

There were two places in the code that tried to connect the SSL filter, e.g. do the TLS handshake, but only one changed imap state to CAPA afterwards.

Depending on timing, the wrong path was taken and the connection was hanging, waiting for a server reply to a command not sent.

Do the upgrade to tls in one place and update connection filter and smtps protocol handler at the same time. Always transition to CAPA on success.

There were two places in the code that tried to connect the SSL filter, e.g. do the TLS handshake, but only one changed imap state to CAPA afterwards.

Depending on timing, the wrong path was taken and the connection was hanging, waiting for a server reply to a command not sent.

Do the upgrade to tls in one place and update connection filter and smtps protocol handler at the same time. Always transition to CAPA on success.
@github-actions github-actions Bot added the IMAP label Feb 6, 2025
@testclutch
Copy link
Copy Markdown

Analysis of PR #16213 at 24d96d65:

Test 987 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 4 different CI jobs (the link just goes to one of them).

Generated by Testclutch

@bagder bagder closed this in 5c7bf5f Feb 7, 2025
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
There were two places in the code that tried to connect the SSL filter,
e.g. do the TLS handshake, but only one changed imap state to CAPA
afterwards.

Depending on timing, the wrong path was taken and the connection was
hanging, waiting for a server reply to a command not sent.

Do the upgrade to tls in one place and update connection filter and
smtps protocol handler at the same time. Always transition to CAPA on
success.

Closes curl#16213
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