Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abcfcba commit 4a67a46Copy full SHA for 4a67a46
1 file changed
Doc/library/socket.rst
@@ -552,6 +552,12 @@ correspond to Unix system calls applicable to sockets.
552
remote end will receive no more data (after queued data is flushed). Sockets are
553
automatically closed when they are garbage-collected.
554
555
+ .. note::
556
+ :meth:`close()` releases the resource associated with a connection but
557
+ does not necessarily close the connection immediately. If you want
558
+ to close the connection in a timely fashion, call :meth:`shutdown()`
559
+ before :meth:`close()`.
560
+
561
562
.. method:: socket.connect(address)
563
0 commit comments