[issue36709] Asyncio SSL keep-alive connections raise errors after loop close.
Andrew Svetlov
report at bugs.python.org
Thu May 30 10:10:43 EDT 2019
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
The difference is that socket.close() is an instant call.
After socket.close() the socket is done.
But transport.close() doesn't close the transport instantly.
asyncio requires at least one loop iteration for calling protocol.connection_lost() and actual socket closing.
In case of SSL it may take much longer.
Sorry, that's how asyncio is designed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36709>
_______________________________________
More information about the Python-bugs-list
mailing list