Skip to content

Commit

Permalink
add nfn check in timeout prevention
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksheeep committed Aug 28, 2020
1 parent 2ac9041 commit 64ed402
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def data_from_higher(self, to_lower: multiprocessing.Queue, to_higher: multiproc
self.running_computations.remove(packet.name)
self.message_dict.remove_entry(packet.name)
self.logger.info("Received Packet from higher")
if isinstance(packet, Interest) and packet.name.string_components[-1] == "NFN":
if isinstance(packet, Interest): #and packet.name.string_components[-1] == "NFN":
self.logger.info("Packet is NFN interest, start timeout prevention")
keepalive_name = self.add_keep_alive_from_name(packet.name)
self.message_dict.create_entry(name=packet.name, packet_id=packet_id)
Expand Down

0 comments on commit 64ed402

Please # to comment.