]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a shutdown() call in the server example.
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 2 Jan 2011 22:09:27 +0000 (22:09 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 2 Jan 2011 22:09:27 +0000 (22:09 +0000)
Doc/library/ssl.rst

index a9daf16452a9eaa953a1d0e5a97ee13f640ab1df..aaa3871104d292ea0a4b09ed626395ded7d9f8d8 100644 (file)
@@ -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