Andrew Svetlov <andrew.svet...@gmail.com> added the comment:

No. It doesn't work this way.
pause_writing is a protocol callback called from transport when the internal 
buffer is full.
In reaction to this callback the producer should stop calling transport.write() 
and resume writing after getting `resume_writing()`.

Flow control is hard. As I wrote you can take a look at asyncio streams for 
example how to do it.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36981>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to