PyDocs

Nav

Internet Protocols and Support

BaseServer.serve_forever

socketserver

method of BaseServer (source) not WASI
  • BaseServer.serve_forever(poll_interval=0.5)
Handle one request at a time until shutdown.

Polls for shutdown every poll_interval seconds. Ignores
self.timeout. If you need to do periodic tasks, do them in
another thread.
Changed in 3.3
  • 3.3: Added service_actions call to the serve_forever method.
0 Examples
No examples for socketserver/BaseServer.serve_forever.
See Also
No see-alsos for socketserver/BaseServer.serve_forever
0 Notes
No notes for BaseServer.serve_forever