#NEWLINE# def __init__( self , bind_addr , gateway , minthreads = 10 , maxthreads = ( - 1 ) , server_name = None ) : #NEWLINE# #INDENT# self . bind_addr = bind_addr #NEWLINE# self . gateway = gateway #NEWLINE# self . requests = ThreadPool ( self , min = ( minthreads or 1 ) , max = maxthreads ) #NEWLINE# if ( not server_name ) : #NEWLINE# #INDENT# server_name = socket . gethostname ( ) #NEWLINE# #UNINDENT# self . server_name = server_name #NEWLINE# self . clear_stats ( )