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, viocal, yselivanov
Date 2019-05-21.11:42:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558438948.0.0.987449947679.issue36981@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-05-21 11:42:28asvetlovsetrecipients: + asvetlov, yselivanov, viocal
2019-05-21 11:42:28asvetlovsetmessageid: <1558438948.0.0.987449947679.issue36981@roundup.psfhosted.org>
2019-05-21 11:42:27asvetlovlinkissue36981 messages
2019-05-21 11:42:27asvetlovcreate