Part of ThreadPoolMixIn View In Hierarchy
Known subclasses: Proxy.ThreadedHTTPServer
use a thread pool instead of a new thread on every request
Line # | Kind | Name | Docs |
---|---|---|---|
23 | Method | serve_forever | Handle one request at a time until doomsday. |
44 | Method | process_request_thread | obtain request from queue instead of directly from server socket |
51 | Method | handle_request | simply collect requests and put them on the queue for the workers. |