[issue17672] ssl unclean shutdown

Antoine Pitrou report at bugs.python.org
Tue Apr 9 17:13:21 CEST 2013


Antoine Pitrou added the comment:

> As an interface of ssl socket, server does not have to read, just
> write
> some data.
> The client side should be able to read the bytes that ther server
> sent.

Please re-read your own code. The server does:

+            def handle(self):
+                self.wfile.write("123")

and the client does:

+                        s.recv(3)

So, yes, the client is able to read the 3 bytes that the server sent.
It's only when you are trying to read an additional byte that an
exception is raised, because the TCP connection has been closed
by the server.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17672>
_______________________________________


More information about the Python-bugs-list mailing list