[issue45309] asyncio task can not be used to open_connection and read data.

2021-09-30 Thread
Change by 穆兰 : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45309> ___ ___ Python-bugs-list mailing list

[issue45309] asyncio task can not be used to open_connection and read data.

2021-09-30 Thread
Change by 穆兰 : -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue45309> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45309] asyncio task can not be used to open_connection and read data.

2021-09-28 Thread
穆兰 added the comment: Hope some one could fix it. -- ___ Python tracker <https://bugs.python.org/issue45309> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45309] asyncio task can not be used to open_connection and read data.

2021-09-28 Thread
New submission from 穆兰 : The server code: import asyncio import struct counter = 0 async def on_connection(r: asyncio.StreamReader, w: asyncio.StreamWriter): msg = struct.pack("HB", 3, 0) w.write(msg) await w.drain() global counter counter += 1 print(counte