Add a shutdown() call in the server example.

This commit is contained in:
Antoine Pitrou 2011-01-02 22:09:27 +00:00
parent 4a67a46543
commit b205d58d0d
1 changed files with 1 additions and 0 deletions

View 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