(original) (raw)

changeset: 74246:4a30d36a9c69 branch: 3.2 parent: 74242:572ddf2770bc user: Sandro Tosi sandro.tosi@gmail.com date: Tue Jan 03 22:35:54 2012 +0100 files: Doc/library/socketserver.rst description: Issue #6031: improve serve_forever() description diff -r 572ddf2770bc -r 4a30d36a9c69 Doc/library/socketserver.rst --- a/Doc/library/socketserver.rst Tue Jan 03 18:37:03 2012 +0100 +++ b/Doc/library/socketserver.rst Tue Jan 03 22:35:54 2012 +0100 @@ -153,13 +153,14 @@ .. 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. .. attribute:: BaseServer.address_family /sandro.tosi@gmail.com