PyDocs

Nav

Internet Protocols and Support

ThreadingMixIn

socketserver

class (source) not WASI
Mix-in class to handle each request in a new thread.
Changed in 3.7
  • 3.7: ForkingMixIn.server_close and ThreadingMixIn.server_close now waits until all child processes and non-daemonic threads complete. Add a new ForkingMixIn.block_on_close class attribute to opt-in for the pre-3.7 behaviour.
Members of ThreadingMixIn

b

block_on_close
ForkingMixIn.server_close waits until all child processes complete, except if block_on_close attribute is False.

d

daemon_threads
For ThreadingMixIn use daemonic threads by setting ThreadingMixIn.daemon_threads to True to not wait until threads complete.

m

max_children
Specify how many child processes will exist to handle requests at a time for ForkingMixIn.
0 Examples
No examples for socketserver/ThreadingMixIn.
See Also
No see-alsos for socketserver/ThreadingMixIn
0 Notes
No notes for ThreadingMixIn