This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients asvetlov, yselivanov
Date 2019-05-05.13:44:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2019-05-05 13:44:32asvetlovsetrecipients: + asvetlov, yselivanov
2019-05-05 13:44:32asvetlovsetmessageid: <>
2019-05-05 13:44:32asvetlovlinkissue36801 messages
2019-05-05 13:44:32asvetlovcreate