def not_recieved(self, iv): if iv in self.in_flight: self.in_flight.discard(iv) requestq.no_reply(self.peer_address.ip, iv, failed=True) print("No reply", iv.hash)
def on_close(self): for iv in in_flight: requestq.no_reply(self.peer_address.ip, iv, failed=False)