MCPcopy Index your code
hub / github.com/python/cpython / process_request_thread

Method process_request_thread

Lib/socketserver.py:687–698  ·  view source on GitHub ↗

Same as in BaseServer but as a thread. In addition, exception handling is done here.

(self, request, client_address)

Source from the content-addressed store, hash-verified

685 _threads = _NoThreads()
686
687 def process_request_thread(self, request, client_address):
688 """Same as in BaseServer but as a thread.
689
690 In addition, exception handling is done here.
691
692 """
693 try:
694 self.finish_request(request, client_address)
695 except Exception:
696 self.handle_error(request, client_address)
697 finally:
698 self.shutdown_request(request)
699
700 def process_request(self, request, client_address):
701 """Start a new thread to process the request."""

Callers

nothing calls this directly

Calls 3

finish_requestMethod · 0.45
handle_errorMethod · 0.45
shutdown_requestMethod · 0.45

Tested by

no test coverage detected