mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
bpo-36801: Temporarily fix regression in writer.drain() (#13330)
This commit is contained in:
parent
91c99873d1
commit
54b74fe9df
2 changed files with 1 additions and 26 deletions
|
@ -439,9 +439,7 @@ class StreamWriter:
|
|||
# Wait for protocol.connection_lost() call
|
||||
# Raise connection closing error if any,
|
||||
# ConnectionResetError otherwise
|
||||
fut = self._protocol._get_close_waiter(self)
|
||||
await fut
|
||||
raise ConnectionResetError('Connection lost')
|
||||
await sleep(0)
|
||||
await self._protocol._drain_helper()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue