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 vsbogd
Recipients georg.brandl, shajianrui, vsbogd
Date 2019-06-20.04:29:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561004974.13.0.399330118044.issue37301@roundup.psfhosted.org>
In-reply-to
Content
Hi @shajianrui,

Thank you for such detailed explanation of experiments.

As you mentioned it is a expected behavior of the io.RawIOBase.read() (see https://docs.python.org/3/library/io.html#io.RawIOBase), but io.BufferedIOBase.read() has different behavior (see https://docs.python.org/3/library/io.html#io.BufferedIOBase.read) and returns requested number of bytes (if stream is not interactive). So it is not surprising that this issue is being reproducible randomly and differently for Windows and Linux. 

I think it may be better reproducible in CGIHTTPRequestHandler because it reads header of the request first.
History
Date User Action Args
2019-06-20 04:29:34vsbogdsetrecipients: + vsbogd, georg.brandl, shajianrui
2019-06-20 04:29:34vsbogdsetmessageid: <1561004974.13.0.399330118044.issue37301@roundup.psfhosted.org>
2019-06-20 04:29:34vsbogdlinkissue37301 messages
2019-06-20 04:29:33vsbogdcreate