From: Antoine Pitrou Date: Sun, 2 Jan 2011 22:09:27 +0000 (+0000) Subject: Add a shutdown() call in the server example. X-Git-Tag: v3.2rc1~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b205d58d0db38581d60d3de99ce27ab88a773c9b;p=thirdparty%2FPython%2Fcpython.git Add a shutdown() call in the server example. --- diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index a9daf16452a9..aaa3871104d2 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