classification
Title: tcp_echo_client in asyncio streams example does not work. Hangs for ever at reaser.read()
Type: behavior Stage:
Components: asyncio Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, jcolo, yselivanov
Priority: normal Keywords:

Created on 2021-04-06 08:07 by jcolo, last changed 2021-04-06 08:07 by jcolo.

Messages (1)
msg390295 - (view) Author: julian colomina (jcolo) Date: 2021-04-06 08:07
taking the example verbatim into an ubuntu 20.04 with
 Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux

will hand indefinitely at 
data = await reader.read(100)

changing for 
data = await asyncio.wait_for(reader.read(100),5)

will always leave on timeout.
History
Date User Action Args
2021-04-06 08:07:33jcolocreate