You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wait for connection_lost in StreamWriter.drain #80982
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2019-05-05.13:44:32.210>labels= ['3.8', 'type-bug', '3.7', 'expert-asyncio']
title='Wait for connection_lost in StreamWriter.drain'updated_at=<Date2019-05-14.21:39:18.302>user='https://github.com/asvetlov'
Now await writer.drain() performs await sleep(0) if underlying transport is closing.
It works well only for plain sockets. SSL transport needs more context switches to shut down the SSL connection.
Drain wakes up too early to check if the transport is actually closed.
New changeset 1cc0ee7 by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098) 1cc0ee7
New changeset 93aa57a by Miss Islington (bot) in branch '3.7': bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098) 93aa57a
New changeset c647ad9 by Victor Stinner in branch '3.7':
Revert "bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)" (GH-13328) c647ad9
Activity
asvetlov commentedon May 5, 2019
Now
await writer.drain()performsawait sleep(0)if underlying transport is closing.It works well only for plain sockets. SSL transport needs more context switches to shut down the SSL connection.
Drain wakes up too early to check if the transport is actually closed.
miss-islington commentedon May 7, 2019
New changeset 1cc0ee7 by Miss Islington (bot) (Andrew Svetlov) in branch 'master':
bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)
1cc0ee7
miss-islington commentedon May 7, 2019
New changeset 93aa57a by Miss Islington (bot) in branch '3.7':
bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)
93aa57a
asvetlov commentedon May 14, 2019
Looks like the change introduced by the PR is not stable at least on Windows boxes
vstinner commentedon May 14, 2019
New changeset c647ad9 by Victor Stinner in branch '3.7':
Revert "bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)" (GH-13328)
c647ad9
asvetlov commentedon May 14, 2019
New changeset 54b74fe by Andrew Svetlov in branch 'master':
bpo-36801: Temporarily fix regression in writer.drain() (bpo-13330)
54b74fe
kumaraditya303 commentedon Sep 25, 2022
Seems like the fix was committed but then reverted as buildbots were failing so there is still work left to do here.