#NEWLINE# def run( self ) : #NEWLINE# #INDENT# logger . debug ( ( 'Proxying connection %r at address %r' % ( self . client . conn , self . client . addr ) ) ) #NEWLINE# try : #NEWLINE# #INDENT# self . _process ( ) #NEWLINE# #UNINDENT# except KeyboardInterrupt : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# logger . exception ( ( 'Exception while handling connection %r with reason %r' % ( self . client . conn , self ) ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# logger . debug ( ( 'closing client connection with pending client buffer size %d bytes' % self . client . buffer_size ( ) ) ) #NEWLINE# self . client . close ( ) #NEWLINE# if self . server : #NEWLINE# #INDENT# logger . debug ( ( 'closed client connection with pending server buffer size %d bytes' % self . server . buffer_size ( ) ) ) #NEWLINE# #UNINDENT# self . _access_log ( ) #NEWLINE# logger . debug ( ( 'Closing proxy for connection %r at address %r' % ( self . client . conn , self . client . addr ) ) )