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 <1559225443.13.0.126484157061.issue36709@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-05-30 14:10:43asvetlovsetrecipients: + asvetlov, christian.heimes, tomchristie, yselivanov
2019-05-30 14:10:43asvetlovsetmessageid: <1559225443.13.0.126484157061.issue36709@roundup.psfhosted.org>
2019-05-30 14:10:43asvetlovlinkissue36709 messages
2019-05-30 14:10:43asvetlovcreate