#NEWLINE# def _setup_connection_handler( self , connection , address ) : #NEWLINE# #INDENT# self . _logger . info ( 'Receiving incoming connection from: {0}:{1}' . format ( address [ 0 ] , address [ 1 ] ) ) #NEWLINE# session_name = '{0:08}' . format ( self . _session_id ) #NEWLINE# self . _session_id += 1 #NEWLINE# self . _logger . info ( 'Dedicating session {0} to {1}:{2}' . format ( session_name , address [ 0 ] , address [ 1 ] ) ) #NEWLINE# try : #NEWLINE# #INDENT# s = session . KmipSession ( self . _engine , connection , name = session_name ) #NEWLINE# s . daemon = True #NEWLINE# s . start ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# self . _logger . warning ( 'Failure occurred while starting session: {0}' . format ( session_name ) ) #NEWLINE# self . _logger . exception ( e )