T.ThreadPoolMixIn(ThreadingMixIn) : class documentation

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.
def serve_forever(self, numThreads=20):

Handle one request at a time until doomsday.

def process_request_thread(self):

obtain request from queue instead of directly from server socket

def handle_request(self):

simply collect requests and put them on the queue for the workers.

API Documentation for SwiperProxy, generated by pydoctor at 2015-10-22 17:52:21.