diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-02 22:09:27 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-02 22:09:27 (GMT) |
| commit | b205d58d0db38581d60d3de99ce27ab88a773c9b (patch) | |
| tree | 25a04fe73270c6cac2f42b9632e9353e6c1b2494 | |
| parent | 4a67a46543db0cec1a23106fa0bad9df5c351828 (diff) | |
| download | cpython-b205d58d0db38581d60d3de99ce27ab88a773c9b.zip cpython-b205d58d0db38581d60d3de99ce27ab88a773c9b.tar.gz cpython-b205d58d0db38581d60d3de99ce27ab88a773c9b.tar.bz2 | |
Add a shutdown() call in the server example.
| -rw-r--r-- | Doc/library/ssl.rst | 1 |
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 |
