[Python-checkins] cpython (2.7): Issue #6031: improve serve_forever() description

sandro.tosi python-checkins at python.org
Tue Jan 3 22:48:49 CET 2012


http://hg.python.org/cpython/rev/4fad6b811c8b
changeset:   74245:4fad6b811c8b
branch:      2.7
parent:      74243:17b7b856cbe8
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Tue Jan 03 22:35:41 2012 +0100
summary:
  Issue #6031: improve serve_forever() description

files:
  Doc/library/socketserver.rst |  7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)


diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst
--- a/Doc/library/socketserver.rst
+++ b/Doc/library/socketserver.rst
@@ -158,13 +158,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.
 
    .. versionadded:: 2.6
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list