RuntimeError: Cannot pause_reading() when closing
fafhrd91 opened this issue · 2 comments
fafhrd91 commented
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 aio-libs/aiohttp#1211
1st1 commented
Sounds like a good idea to me.