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 njs
Recipients njs, pitrou, vstinner, yselivanov
Date 2018-06-01.15:54:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527868479.89.0.81473610881.issue33733@psf.upfronthosting.co.za>
In-reply-to
Content
Note that in my experience, socket systems treat the buffer sizes as more like... rough guidelines. Especially Windows and Linux. Which doesn't mean they're not useful to expose somehow, but you can't assume that just because you set the buffer to size X means that operations will start blocking after X bytes. When trio's tests need a clogged socket, we just keep sending in a loop until we observe a BlockingIOError, and then do the test.

Pipe buffers are much more reasonably behaved IME.
History
Date User Action Args
2018-06-01 15:54:39njssetrecipients: + njs, pitrou, vstinner, yselivanov
2018-06-01 15:54:39njssetmessageid: <1527868479.89.0.81473610881.issue33733@psf.upfronthosting.co.za>
2018-06-01 15:54:39njslinkissue33733 messages
2018-06-01 15:54:39njscreate