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