#NEWLINE# def setup_connection( self , client_socket ) : #NEWLINE# #INDENT# if self . block_non_clients : #NEWLINE# #INDENT# if ( not self . app_blame . client_available ( client_socket . getpeername ( ) [ 0 ] ) ) : #NEWLINE# #INDENT# self . logger . debug ( 'Connection from non-client %s blocked' , client_socket . getpeername ( ) [ 0 ] ) #NEWLINE# client_socket . close ( ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# connection = self . connection_class ( self , client_socket , self . handler_selector , self . ssl_handler_selector , self . data_handler_selector , self . app_blame ) #NEWLINE# if connection . start ( ) : #NEWLINE# #INDENT# self . set_select_fds ( connection )