Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
socketserver.ThreadingMixIn Class Reference
Inheritance diagram for socketserver.ThreadingMixIn:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def process_request_thread
def process_request

Static Public Attributes

 daemon_threads = False

Detailed Description

Mix-in class to handle each request in a new thread.

Definition at line 567 of file socketserver.py.


Member Function Documentation

def socketserver.ThreadingMixIn.process_request (   self,
  request,
  client_address 
)
Start a new thread to process the request.

Definition at line 587 of file socketserver.py.

00587 
00588     def process_request(self, request, client_address):
00589         """Start a new thread to process the request."""
00590         t = threading.Thread(target = self.process_request_thread,
00591                              args = (request, client_address))
00592         if self.daemon_threads:
00593             t.daemon = True
00594         t.start()
00595 

Here is the call graph for this function:

def socketserver.ThreadingMixIn.process_request_thread (   self,
  request,
  client_address 
)
Same as in BaseServer but as a thread.

In addition, exception handling is done here.

Definition at line 574 of file socketserver.py.

00574 
00575     def process_request_thread(self, request, client_address):
00576         """Same as in BaseServer but as a thread.
00577 
00578         In addition, exception handling is done here.
00579 
00580         """
00581         try:
00582             self.finish_request(request, client_address)
00583             self.shutdown_request(request)
00584         except:
00585             self.handle_error(request, client_address)
00586             self.shutdown_request(request)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 572 of file socketserver.py.


The documentation for this class was generated from the following file: