Actions
Bug #3130
closedRegisterPrefix doesn't provide a callback
Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
08/24/2015
Due date:
% Done:
0%
Estimated time:
Description
When face.registerPrefix() is called immediately followed by face.ExpressInterest(), Interests time out.
This happens since registerPrefix takes some time to complete and when Data comes back, it doesn't find any faces with the handle.
For the following code first few Data packets will timeout.
face.registerPrefix(prefix, self.onInterest, self.onRegisterFailed)
print("Registering prefix", prefix.toUri())
#express Interest
interest = Interest(Name(publish))
interest.setInterestLifetimeMilliseconds(4000)
interest.setMustBeFresh(True)
self.face.expressInterest(interest, self._onData, self._onTimeout)
print("Expressed Interest %s" %(interest.getName()))
Actions