logging.config.ThreadingTCPServer

class logging.config.ThreadingTCPServer(server_address, RequestHandlerClass, bind_and_activate=True)[source]

Methods

__init__(server_address, RequestHandlerClass) Constructor.
_handle_request_noblock() Handle one request, without blocking.
close_request(request) Called to clean up an individual request.
fileno() Return socket file number.
finish_request(request, client_address) Finish one request by instantiating RequestHandlerClass.
get_request() Get the request and client address from the socket.
handle_error(request, client_address) Handle an error gracefully.
handle_request() Handle one request, possibly blocking.
handle_timeout() Called if no new request arrives within self.timeout.
process_request(request, client_address) Start a new thread to process the request.
process_request_thread(request, client_address) Same as in BaseServer but as a thread.
serve_forever([poll_interval]) Handle one request at a time until shutdown.
server_activate() Called by constructor to activate the server.
server_bind() Called by constructor to bind the socket.
server_close() Called to clean-up the server.
shutdown() Stops the serve_forever loop.
shutdown_request(request) Called to shutdown and close an individual request.
verify_request(request, client_address) Verify the request.