when i run the server in one terminal and the client in another the server output wold be: Serving on ('127.0.0.1', 8443) my transport None my backlog len 2 my backlog size 4200 that output proves that it is trying to write into socket, while there is no transport! see attached example server+client mini apps.
This looks like a problem in asyncio. When the client closes the writer, the TLS and TCP connections are shut down. The server's writer still accept data although it is not written to the underlying ssl object: (Pdb) writer.transport._ssl_protocol._extra['ssl_object'].pending() 0 (Pdb) writer.transport._ssl_protocol._in_shutdown True (Pdb) len(writer.transport._ssl_protocol._write_backlog) 2
title: ssl socket gets into broken state when client exits during handshake -> [asyncio] ssl socket gets into broken state when client exits during handshake