Andrew Svetlov <andrew.svet...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue36709> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com