Andrew Svetlov <[email protected]> added the comment:
The correct approach is using Protocol.pause_writing() / Protocol.resume_writing() callbacks. No trivial, though. See `StreamWriter.drain()` for example of implementation. ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue36981> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
