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 s_kostyuk
Recipients s_kostyuk, yselivanov
Date 2017-07-27.18:13:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Good day

Maybe I misunderstood something, but I'm failed to fetch any data by calling if `n` is less than zero (or left default). It just hangs in the loop forever (see line number 614 of asyncio/ If `n` is equal to any positive value - coroutine works as expected and returns if there is any data in socket buffer. Even if available data size is less than `n` bytes.

Expected behavior: collect all data from the buffer and return
Current behavior: hangs in the loop forever if n < 0

My usage sample:
Date User Action Args
2017-07-27 18:13:39s_kostyuksetrecipients: + s_kostyuk, yselivanov
2017-07-27 18:13:39s_kostyuksetmessageid: <>
2017-07-27 18:13:39s_kostyuklinkissue31059 messages
2017-07-27 18:13:39s_kostyukcreate