Commit 4f616af0 authored by Antoine Pitrou's avatar Antoine Pitrou

Merge

parents 8f85f907 753b79c0
...@@ -153,13 +153,14 @@ Server Objects ...@@ -153,13 +153,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.
.. attribute:: BaseServer.address_family .. attribute:: BaseServer.address_family
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment