Project

General

Profile

Actions

Bug #3130

closed

RegisterPrefix doesn't provide a callback

Added by susmit shannigrahi about 9 years ago. Updated about 9 years ago.

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()))

Related issues 1 (0 open1 closed)

Is duplicate of NDN-CCL - Feature #3005: Add callback for successful prefix registrationClosed07/02/2015

Actions
Actions

Also available in: Atom PDF