Make pause/resume_reading idepotent and no-op for closed transports by fafhrd91 · Pull Request #528 · python/cpython (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aiohttp maintains paused state separately from asyncio transport. it would be useful to have public api for that.

in aiohttp paused state is maintained by different edges, protocol pauses transport
when it get enough data, but resume happen from other edge, when user reads-out data from incoming stream. that is the reason why I think pause/resume should be ideponent and no-op during closing stage.