From: Victor Stinner Date: Sat, 12 Jul 2014 01:20:24 +0000 (+0200) Subject: asyncio: Server.close() leaves client sockets open X-Git-Tag: v3.4.2rc1~231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bfb14ac10eef86652142879d02e7601d1cf6490;p=python asyncio: Server.close() leaves client sockets open --- diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 993a5dea44..6fe5aa1b20 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.