mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add a shutdown() call in the server example.
This commit is contained in:
parent
4a67a46543
commit
b205d58d0d
1 changed files with 1 additions and 0 deletions
|
@ -888,6 +888,7 @@ method to create a server-side SSL socket for the connection::
|
||||||
try:
|
try:
|
||||||
deal_with_client(connstream)
|
deal_with_client(connstream)
|
||||||
finally:
|
finally:
|
||||||
|
connstream.shutdown(socket.SHUT_RDWR)
|
||||||
connstream.close()
|
connstream.close()
|
||||||
|
|
||||||
Then you'll read data from the ``connstream`` and do something with it till you
|
Then you'll read data from the ``connstream`` and do something with it till you
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue