def check_for_requests(storage):
    c = storage.get_connection()
    if (c == False):
        return
    else:
        print "Processing connection %s" % c
        conn, host, port = c.split()
        thread.start_new_thread(ConnectionHandler, (conn, host, port))
def check_for_requests(storage):
    c = storage.get_connection()
    if c == False:
        return
    else:
        print "Processing connection %s" % c
        conn, host, port = c.split()
        thread.start_new_thread(ConnectionHandler, (conn, host, port))
Exemple #3
0
 def run_thread():
     sd.local.conn = storage.get_connection()
     run(host=host, port=port)