<div dir="ltr"><div>Hi Matteo<br><br></div><div>repo-ng cannot modify FreshnessPeriod on Data packets because it does not possess the signing key. Instead, the producer who creates and signs the Data should set FreshnessPeriod prior to inserting the Data into FreshnessPeriod.<br><br></div><div>NFD does not erase Data whose FreshnessPeriod has expires from the ContentStore, because stale Data is still valid Data, and can be retrieved by an Interest without MustBeFresh selector. Stale Data cannot satisfy an Interest whose MustBeFresh selector is set.<br></div><div></div><div>Staleness can be considered in a CS policy. For example, the priority_fifo policy evicts stale Data before fresh Data. This eviction occurs only if CS is full; stale Data won't be erased just because it becomes stale, and would stay indefinitely if the CS is never full.</div><div><br></div>Yours, Junxiao<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 12, 2016 at 8:39 AM, Matteo Bertolino <span dir="ltr"><<a href="mailto:Matteo.Bertolino@eurecom.fr" target="_blank">Matteo.Bertolino@eurecom.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I would like to modify the repo-ng source code in order to put a Freshness period on the data that it returns.<br>
I tried to insert the modification immediately before each "face.put(*data)" making a research in the souce code with "grep" tool.<br>
Unfortunately, the data published continues to stay indefinitely inside the content store of the intermediate nodes.<br>
Where can I inject my modification?<br></blockquote></div></div></div></div></div>