[Nfd-dev] how to disable the ContentStore?

Junxiao Shi shijunxiao at email.arizona.edu
Wed Feb 15 15:08:46 PST 2017

Hi Ashlesh

Your producer code is correct.
It does not work due to NFD Bug 3966
<https://redmine.named-data.net/issues/3966>. You may watch the issue on
Redmine, and try again when it's resolved.

Yours, Junxiao

On Wed, Feb 15, 2017 at 1:00 AM, Ashlesh Gawande (agawande) <
agawande at memphis.edu> wrote:

> I tried to test the NoCache CachePolicy with producer and consumer as
> follows:
> 1) At line
> <https://github.com/named-data/ndn-cxx/blob/master/examples/producer.cpp#L68>
> https://github.com/named-data/ndn-cxx/blob/a341ae80b555fb1a1c4b2738e5dddc
> fbbcdf77fc/examples/producer.cpp#L68
>  I added:
> ndn::lp::CachePolicy cachePolicy;
> cachePolicy.setPolicy(ndn::lp::CachePolicyType::NO_CACHE);
> data->setTag(std::make_shared<ndn::lp::CachePolicyTag>(cachePolicy));
> Consumer example was used as it is (must be fresh is set to true).
> Started NFD and ran the producer. Then ran the consumer on the same
> machine and got the data back.
> Then I killed the producer and re-ran the consumer. I still got the data
> back.
> Only after the freshness period of data (10 seconds) did I stop receiving
> data from NFD and got a NoRoute Nack.
> Is this not how NoCache policy is supposed to work? Am I doing something
> wrong?
> Thanks
> Ashlesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170215/ba579720/attachment.html>

More information about the Nfd-dev mailing list