Message343017
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. |
|
Date |
User |
Action |
Args |
2019-05-21 11:42:28 | asvetlov | set | recipients:
+ asvetlov, yselivanov, viocal |
2019-05-21 11:42:28 | asvetlov | set | messageid: <1558438948.0.0.987449947679.issue36981@roundup.psfhosted.org> |
2019-05-21 11:42:27 | asvetlov | link | issue36981 messages |
2019-05-21 11:42:27 | asvetlov | create | |
|