Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea320ab commit 753b79cCopy full SHA for 753b79c
1 file changed
Doc/library/socketserver.rst
@@ -153,13 +153,14 @@ Server Objects
153
154
.. method:: BaseServer.serve_forever(poll_interval=0.5)
155
156
- Handle requests until an explicit :meth:`shutdown` request. Polls for
157
- shutdown every *poll_interval* seconds.
+ Handle requests until an explicit :meth:`shutdown` request.
+ Poll for shutdown every *poll_interval* seconds. Ignores :attr:`self.timeout`.
158
+ If you need to do periodic tasks, do them in another thread.
159
160
161
.. method:: BaseServer.shutdown()
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.
164
165
166
.. attribute:: BaseServer.address_family
0 commit comments