Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 def on_close(self):
     for iv in in_flight:
         requestq.no_reply(self.peer_address.ip, iv, failed=False)