Skip to content

gh-152431: Update StreamReader transport after asyncio TLS upgrade#152509

Closed
factnn wants to merge 2 commits into
python:mainfrom
factnn:fix/asyncio-streamreader-tls-transport
Closed

gh-152431: Update StreamReader transport after asyncio TLS upgrade#152509
factnn wants to merge 2 commits into
python:mainfrom
factnn:fix/asyncio-streamreader-tls-transport

Conversation

@factnn

@factnn factnn commented Jun 28, 2026

Copy link
Copy Markdown

Fixes #152431

StreamReaderProtocol._replace_transport only updated its own
transport reference. After start_tls, the linked
StreamReader still held the old transport, causing reads to
use the wrong connection.

StreamReaderProtocol._replace_transport only updated its own
transport reference. After start_tls, the linked StreamReader
still held the old transport, causing reads to use the wrong
connection.
Comment thread Lib/asyncio/streams.py Outdated
@picnixz

picnixz commented Jun 28, 2026

Copy link
Copy Markdown
Member

Actually there is already a PR for that. Please don't open duplicated PRs.

@picnixz picnixz closed this Jun 28, 2026
@StanFromIreland

Copy link
Copy Markdown
Member

I just noticed this, @factnn this is the second such PR in the same hour. If this noise continues we will be forced to restrict your account in the Python organisation.

@factnn

factnn commented Jun 28, 2026

Copy link
Copy Markdown
Author

thanks for pointing that out — I didn't notice #152432. closing this as duplicate.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

asyncio.StreamWriter.start_tls() does not update the linked StreamReader transport

3 participants