From: Sandro Tosi Date: Tue, 3 Jan 2012 21:35:41 +0000 (+0100) Subject: Issue #6031: improve serve_forever() description X-Git-Tag: v2.7.3rc1~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=499718de49505d3cf3797ab5722862cbbe12e801;p=python Issue #6031: improve serve_forever() description --- diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index faa3d89b98..252e568b5e 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -158,13 +158,14 @@ Server Objects .. method:: BaseServer.serve_forever(poll_interval=0.5) - Handle requests until an explicit :meth:`shutdown` request. Polls for - shutdown every *poll_interval* seconds. + Handle requests until an explicit :meth:`shutdown` request. + Poll for shutdown every *poll_interval* seconds. Ignores :attr:`self.timeout`. + If you need to do periodic tasks, do them in another thread. .. method:: BaseServer.shutdown() - Tells the :meth:`serve_forever` loop to stop and waits until it does. + Tell the :meth:`serve_forever` loop to stop and wait until it does. .. versionadded:: 2.6