]> granicus.if.org Git - python/commitdiff
Issue #6031: improve serve_forever() description
authorSandro Tosi <sandro.tosi@gmail.com>
Tue, 3 Jan 2012 21:35:54 +0000 (22:35 +0100)
committerSandro Tosi <sandro.tosi@gmail.com>
Tue, 3 Jan 2012 21:35:54 +0000 (22:35 +0100)
Doc/library/socketserver.rst

index 366dac4a0b2b8b57153c0b8bbee5006f9c7d5119..34bcce0e448079d9ad0bf5e7d96db8e80f2f544a 100644 (file)
@@ -153,13 +153,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.
 
 
 .. attribute:: BaseServer.address_family