asyncio icon indicating copy to clipboard operation
asyncio copied to clipboard

RuntimeError: Cannot pause_reading() when closing

Open fafhrd91 opened this issue 8 years ago • 2 comments

i think pause_reading should be no-op during closing or for closed transport. for aiohttp case parsing incoming data is separated from transport and it is not possible to control closing state of transport in current architecture. also closing process is asynchronous, it is very possible to get this exception even in simple asyncio libs.

issue KeepSafe/aiohttp#1211

fafhrd91 avatar Jan 23 '17 18:01 fafhrd91

Sounds like a good idea to me.

1st1 avatar Jan 23 '17 21:01 1st1

@1st1 if you move this ticket to cpython, you can assign it to me, I will work on this issue next during next couple days

fafhrd91 avatar Mar 03 '17 00:03 fafhrd91