Skip to content

pop3, upgrade tls fix#16208

Closed
icing wants to merge 3 commits into
curl:masterfrom
icing:pop3-upgrade-tls-fix
Closed

pop3, upgrade tls fix#16208
icing wants to merge 3 commits into
curl:masterfrom
icing:pop3-upgrade-tls-fix

Conversation

@icing

@icing icing commented Feb 6, 2025

Copy link
Copy Markdown
Contributor

There were two places in the code that tried to connect the SSL filter, e.g. do the TLS handshake, but only one changed pop3 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.

refs #16166

There were two places in the code that tried to connect the SSL filter, e.g. do the TLS handshake, but only one changed pop3 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.

refs curl#16166
@github-actions github-actions Bot added the POP3 label Feb 6, 2025
@testclutch

Copy link
Copy Markdown

Analysis of PR #16208 at 973bce15:

Test 987 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Generated by Testclutch

@bagder bagder closed this in cc256e8 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 pop3 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.

Ref: curl#16166
Closes curl#16208
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