Skip to content

[3.15] gh-160513: Call connection_lost() when start_tls() handshake is lost (GH-160514) - #160686

Merged
gpshead merged 1 commit into
python:3.15from
miss-islington:backport-d9cfd30-3.15
Oct 25, 2026
Merged

gpshead merged 1 commit into
python:3.15from
miss-islington:backport-d9cfd30-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

SSLProtocol.connection_lost() did not notify the application protocol
while a handshake was in progress, even when start_tls() had handed
over a protocol that had already seen connection_made(). With streams
this left StreamWriter.wait_closed() waiting forever.

ANT-2026-A6ZIAFVT
ANT-2026-4SKWM05E
(cherry picked from commit d9cfd30)

Co-authored-by: Gregory P. Smith 68491+gpshead@users.noreply.github.com

… lost (pythonGH-160514)

SSLProtocol.connection_lost() did not notify the application protocol
while a handshake was in progress, even when start_tls() had handed
over a protocol that had already seen connection_made().  With streams
this left StreamWriter.wait_closed() waiting forever.

ANT-2026-A6ZIAFVT
ANT-2026-4SKWM05E
(cherry picked from commit d9cfd30)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this to Todo in Sprint Oct 25, 2026
@gpshead
gpshead enabled auto-merge (squash) October 25, 2026 23:25
@gpshead gpshead self-assigned this Oct 25, 2026
@gpshead
gpshead merged commit fca9ded into python:3.15 Oct 25, 2026
60 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Sprint Oct 25, 2026
@miss-islington
miss-islington deleted the backport-d9cfd30-3.15 branch October 25, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants