Project

General

Profile

Actions

Bug #1917

closed

Face::removePendingInterest is not working

Added by Alex Afanasyev over 10 years ago. Updated over 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 #1

Updated by Alex Afanasyev over 10 years ago

  • Status changed from In Progress to Code review
Actions #2

Updated by Alex Afanasyev over 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF