Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 753b79c

Browse files
committed
Issue #6031: improve serve_forever() description
1 parent ea320ab commit 753b79c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/library/socketserver.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,14 @@ Server Objects
153153

154154
.. method:: BaseServer.serve_forever(poll_interval=0.5)
155155

156-
Handle requests until an explicit :meth:`shutdown` request. Polls for
157-
shutdown every *poll_interval* seconds.
156+
Handle requests until an explicit :meth:`shutdown` request.
157+
Poll for shutdown every *poll_interval* seconds. Ignores :attr:`self.timeout`.
158+
If you need to do periodic tasks, do them in another thread.
158159

159160

160161
.. method:: BaseServer.shutdown()
161162

162-
Tells the :meth:`serve_forever` loop to stop and waits until it does.
163+
Tell the :meth:`serve_forever` loop to stop and wait until it does.
163164

164165

165166
.. attribute:: BaseServer.address_family

0 commit comments

Comments
 (0)