@@ -1489,17 +1489,17 @@ to sockets.
14891489
14901490 Mark the socket closed. The underlying system resource (e.g., a file descriptor) is also
14911491 closed when all file objects from :meth: `makefile ` are closed. Once that happens, all future
1492- operations on the socket object will fail. The remote end will receive no more data
1492+ operations on the socket object will fail. The remote end will receive no more data
14931493 (after queued data is flushed).
14941494
1495- If the ``shutdown `` parameter is set to ``True ``, the socket will first be
1496- shut down before closing, ensuring that no further data can be sent or received.
1497- This is useful for properly releasing resources and preventing issues like lingering
1495+ If the ``shutdown `` parameter is set to ``True ``, the socket will first be
1496+ shut down before closing, ensuring that no further data can be sent or received.
1497+ This is useful for properly releasing resources and preventing issues like lingering
14981498 connections or reset by peer (RST) errors in some network conditions. If the parameter is
14991499 ommited or set to false, the function will continue its normal behavior
15001500
1501- Sockets are automatically closed when they are garbage-collected, but
1502- it is recommended to :meth: `close ` them explicitly, or to use a
1501+ Sockets are automatically closed when they are garbage-collected, but
1502+ it is recommended to :meth: `close ` them explicitly, or to use a
15031503 :keyword: `with ` statement around them.
15041504
15051505 .. versionadded :: 3.14
@@ -1511,8 +1511,8 @@ to sockets.
15111511
15121512 .. note ::
15131513
1514- :meth: `close ` releases the resource associated with a connection
1515- but does not necessarily close the connection immediately. If you want to close the connection in a
1514+ :meth: `close ` releases the resource associated with a connection
1515+ but does not necessarily close the connection immediately. If you want to close the connection in a
15161516 timely fashion, call :meth: `shutdown ` before :meth: `close `, or
15171517 use this function with the shutdown parameter like this ``socket.close(shutdown=True) ``
15181518
0 commit comments