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 <rep...@bugs.python.org> <http://bugs.python.org/issue17672> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com