Add a shutdown() call in the server example.
This commit is contained in:
parent
4a67a46543
commit
b205d58d0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue