Message343978
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:43 | asvetlov | set | recipients:
+ asvetlov, christian.heimes, tomchristie, yselivanov |
2019-05-30 14:10:43 | asvetlov | set | messageid: <1559225443.13.0.126484157061.issue36709@roundup.psfhosted.org> |
2019-05-30 14:10:43 | asvetlov | link | issue36709 messages |
2019-05-30 14:10:43 | asvetlov | create | |
|