SocketServer.ForkingTCPServer

class SocketServer.ForkingTCPServer(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.
collect_children() Internal routine to wait for children that have exited.
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() Wait for zombies after self.timeout seconds of inactivity.
process_request(request, client_address) Fork a new subprocess to process the request.
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.