Project

General

Profile

Actions

Task #1758

closed

Allow in-wire refreshing of nonce of Interest

Added by Alex Afanasyev almost 10 years ago. Updated almost 10 years ago.

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

100%

Estimated time:

Description

Nonce should be considered a volatile field in Interests and there should be a way to update Nonce field without re-generating wire format for the Interest.

One of the use cases is to use this method inside onTimeout callback. Without updating the nonce, there is a good chance that re-use of the Interest will cause it to be dropped due to duplicated nonce. The only way around right now is to re-create the wire-format, which incurs unnecessary overhead.

This interface should be used carefully, since it can have some side effects. However, given volatile nature of the Nonce, it should not be relied upon anywhere.

Actions #1

Updated by Alex Afanasyev almost 10 years ago

  • Subject changed from Allow in-wire refreshing of nonce even when Interest is const to Allow in-wire refreshing of nonce of Interest
Actions #2

Updated by Junxiao Shi almost 10 years ago

20140713 conference call:

It's unsafe to allow refreshing Nonce in const Interest, so this method should be marked non-const.

This shall use a regular random number generator, not a crypto rng, for better performance.

Actions #3

Updated by Junxiao Shi almost 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF