[Python-checkins] cpython (3.4): asyncio: Server.close() leaves client sockets open
victor.stinner
python-checkins at python.org
Sat Jul 12 03:20:49 CEST 2014
http://hg.python.org/cpython/rev/23b439ac9e2d
changeset: 91657:23b439ac9e2d
branch: 3.4
parent: 91655:1852d0e5e4ef
user: Victor Stinner <victor.stinner at gmail.com>
date: Sat Jul 12 03:20:24 2014 +0200
summary:
asyncio: Server.close() leaves client sockets open
files:
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
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -567,8 +567,11 @@
.. 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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list