summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-02 22:09:27 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-02 22:09:27 (GMT)
commitb205d58d0db38581d60d3de99ce27ab88a773c9b (patch)
tree25a04fe73270c6cac2f42b9632e9353e6c1b2494
parent4a67a46543db0cec1a23106fa0bad9df5c351828 (diff)
downloadcpython-b205d58d0db38581d60d3de99ce27ab88a773c9b.zip
cpython-b205d58d0db38581d60d3de99ce27ab88a773c9b.tar.gz
cpython-b205d58d0db38581d60d3de99ce27ab88a773c9b.tar.bz2
Add a shutdown() call in the server example.
-rw-r--r--Doc/library/ssl.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index a9daf16..aaa3871 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