Марк Коренберг added the comment:
Triggered almost the same error. Minimal proof:
Documentation did not say that .drain() can't be called simultaneously.
===================================
async def do_nothing(client_reader, client_writer):
await asyncio.sleep(10000)
mb = b'*' * (4096*4)
async def write_cmd(writer):
writer.write(mb)
await writer.drain()
async def amain():
srv = await asyncio.start_unix_server(do_nothing, b'\x00qwe')
(reader, writer) = await asyncio.open_unix_connection(b'\x00qwe')
await asyncio.gather(*(write_cmd(writer) for i in range(200)))
loop = asyncio.get_event_loop()
loop.run_until_complete(amain())
===================================
----------
nosy: +socketpair
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29930>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com