New submission from Andrew Svetlov <andrew.svet...@gmail.com>:
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. ---------- components: asyncio messages: 341445 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Wait for connection_lost in StreamWriter.drain type: behavior versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36801> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com