Issue #6031: improve serve_forever() description

This commit is contained in:
Sandro Tosi 2012-01-03 22:35:41 +01:00
parent 711f54798c
commit 499718de49
1 changed files with 4 additions and 3 deletions

View File

@ -158,13 +158,14 @@ Server Objects
.. method:: BaseServer.serve_forever(poll_interval=0.5) .. method:: BaseServer.serve_forever(poll_interval=0.5)
Handle requests until an explicit :meth:`shutdown` request. Polls for Handle requests until an explicit :meth:`shutdown` request.
shutdown every *poll_interval* seconds. 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() .. 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 .. versionadded:: 2.6