Task #1758
closedAllow in-wire refreshing of nonce of Interest
100%
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.
Updated by Alex Afanasyev over 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
Updated by Junxiao Shi over 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.
Updated by Junxiao Shi over 10 years ago
- Status changed from Code review to Closed