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

Skip to content

Commit 4bfb14a

Browse files
committed
asyncio: Server.close() leaves client sockets open
1 parent e912e65 commit 4bfb14a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,11 @@ Server
567567

568568
.. method:: close()
569569

570-
Stop serving: close all sockets and set the :attr:`sockets` attribute to
571-
``None``.
570+
Stop serving: close listening sockets and set the :attr:`sockets`
571+
attribute to ``None``.
572+
573+
The sockets that represent existing incoming client connections are
574+
leaved open.
572575

573576
The server is closed asynchonously, use the :meth:`wait_closed` coroutine
574577
to wait until the server is closed.

0 commit comments

Comments
 (0)