Project

General

Profile

Actions

Bug #1917

closed

Face::removePendingInterest is not working

Added by Alex Afanasyev over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Base
Target version:
Start date:
08/22/2014
Due date:
% Done:

100%

Estimated time:

Description

Code snippet:

shared_ptr<DummyClientFace> face = makeDummyClientFace();

const PendingInterestId* interestId =
  face->expressInterest(Interest("/test/interest", time::seconds(10)),
                       bind(&Fixture::onData, this),
                       bind(&Fixture::onTimeout, this));

shared_ptr<Data> data = make_shared<Data>("/test/interest/replied");
data->setContent(buffer, sizeof(buffer));
KeyChain keyChain;
keyChain.sign(*data);
face->receive(*data);

face->removePendingInterest(interestId);
face->processEvents(time::milliseconds(100));

Expected: onData callback not called

Actual: onData callback called

Actions

Also available in: Atom PDF