mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
asyncio: Server.close() leaves client sockets open
This commit is contained in:
parent
e912e652f8
commit
4bfb14ac10
1 changed files with 5 additions and 2 deletions
|
|
@ -567,8 +567,11 @@ Server
|
||||||
|
|
||||||
.. method:: close()
|
.. method:: close()
|
||||||
|
|
||||||
Stop serving: close all sockets and set the :attr:`sockets` attribute to
|
Stop serving: close listening sockets and set the :attr:`sockets`
|
||||||
``None``.
|
attribute to ``None``.
|
||||||
|
|
||||||
|
The sockets that represent existing incoming client connections are
|
||||||
|
leaved open.
|
||||||
|
|
||||||
The server is closed asynchonously, use the :meth:`wait_closed` coroutine
|
The server is closed asynchonously, use the :meth:`wait_closed` coroutine
|
||||||
to wait until the server is closed.
|
to wait until the server is closed.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue