Andrew Svetlov added the comment:
`.read(-1)` reads up to end of stream (closing the underlying socket by peer).
If other side doesn't close connection after sending data -- read(-1) hangs,
but it is not asyncio bug.
--
nosy: +asvetlov
resolution: -> not a
New submission from Sergey Kostyuk:
Good day
Maybe I misunderstood something, but I'm failed to fetch any data by calling
asyncio.StreamReader.read if `n` is less than zero (or left default). It just
hangs in the loop forever (see line number 614 of asyncio/streams.py: