This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients asvetlov, christian.heimes, tomchristie, yselivanov
Date 2019-05-30.14:10:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2019-05-30 14:10:43asvetlovsetrecipients: + asvetlov, christian.heimes, tomchristie, yselivanov
2019-05-30 14:10:43asvetlovsetmessageid: <>
2019-05-30 14:10:43asvetlovlinkissue36709 messages
2019-05-30 14:10:43asvetlovcreate