def recvall(self, client): try: data = rs_decode(client.sock.recv(4096)) if data == '': raise Exception('rabbit eating the cable') except socket.error: self.err_log('dispatcher connection error, quitting') return client.feed(data)
def recvall(self, client): try: data = rs_decode(client.sock.recv(4096)) if data == '': raise except socket.error: self.announcement("dispatcher connection error, quitting") sys.exit() return client.feed(data)
def recvall(self, client): try: data = rs_decode(client.srv_sock.recv(4096)) if data == '': raise Exception('recv failed') except socket.error: if client == self.current_dbg: self.broadcast('debugger closed the connection') self.dbg_quit() else: self.client_quit(client.srv_sock) self.broadcast("a client quit, %d client(s) left" % len(self.idb_clients)) return [] return client.feed(data)