From b205d58d0db38581d60d3de99ce27ab88a773c9b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 2 Jan 2011 22:09:27 +0000 Subject: [PATCH] Add a shutdown() call in the server example. --- Doc/library/ssl.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index a9daf16452a..aaa3871104d 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -888,6 +888,7 @@ method to create a server-side SSL socket for the connection:: try: deal_with_client(connstream) finally: + connstream.shutdown(socket.SHUT_RDWR) connstream.close() Then you'll read data from the ``connstream`` and do something with it till you