diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-12 01:20:24 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-12 01:20:24 (GMT) |
commit | 4bfb14ac10eef86652142879d02e7601d1cf6490 (patch) | |
tree | 4eeec51255a813a5d6a51082cc18604cea0f9217 /Doc/library | |
parent | e912e652f85bfd92d7209aa0cb23e5d3975a8d72 (diff) | |
download | cpython-4bfb14ac10eef86652142879d02e7601d1cf6490.zip cpython-4bfb14ac10eef86652142879d02e7601d1cf6490.tar.gz cpython-4bfb14ac10eef86652142879d02e7601d1cf6490.tar.bz2 |
asyncio: Server.close() leaves client sockets open
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 993a5de..6fe5aa1 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -567,8 +567,11 @@ Server .. method:: close() - Stop serving: close all sockets and set the :attr:`sockets` attribute to - ``None``. + Stop serving: close listening sockets and set the :attr:`sockets` + 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 to wait until the server is closed. |