

def run(self):
    logging.debug('DebugHost up.')
    while SETTINGS['running']:
        try:
            (self.conn, self.addr) = self.socket.accept()
            logging.debug('Debug: Connected.')
        except socket.timeout:
            continue
        data = self.conn.recv(1024)
        self.conn.sendall(parse_packet(data))
        self.conn.close()

dataset/ETHPy150Open flags/Reactor-3/network.py DebugHost.run/original