Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b205d58

Browse files
committed
Add a shutdown() call in the server example.
1 parent 4a67a46 commit b205d58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/library/ssl.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ method to create a server-side SSL socket for the connection::
888888
try:
889889
deal_with_client(connstream)
890890
finally:
891+
connstream.shutdown(socket.SHUT_RDWR)
891892
connstream.close()
892893

893894
Then you'll read data from the ``connstream`` and do something with it till you

0 commit comments

Comments
 (0)