#NEWLINE# def handle_one_request( self ) : #NEWLINE# #INDENT# "Handle a single HTTP request.\n\n        You normally don't need to override this method; see the class\n        __doc__ string for information on how to handle specific HTTP\n        commands such as GET and POST.\n\n        " #NEWLINE# try : #NEWLINE# #INDENT# self . raw_requestline = self . rfile . readline ( 65537 ) #NEWLINE# if ( len ( self . raw_requestline ) > 65536 ) : #NEWLINE# #INDENT# self . requestline = '' #NEWLINE# self . request_version = '' #NEWLINE# self . command = '' #NEWLINE# self . send_error ( 414 ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( not self . raw_requestline ) : #NEWLINE# #INDENT# self . close_connection = 1 #NEWLINE# return #NEWLINE# #UNINDENT# if ( not self . parse_request ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# mname = ( 'do_' + self . command ) #NEWLINE# if ( not hasattr ( self , mname ) ) : #NEWLINE# #INDENT# self . send_error ( 501 , ( 'Unsupported method (%r)' % self . command ) ) #NEWLINE# return #NEWLINE# #UNINDENT# method = getattr ( self , mname ) #NEWLINE# method ( ) #NEWLINE# self . wfile . flush ( ) #NEWLINE# #UNINDENT# except socket . timeout as e : #NEWLINE# #INDENT# self . log_error ( 'Request timed out: %r' , e ) #NEWLINE# self . close_connection = 1 #NEWLINE# return