UCLA-IRL / NAC-ABE

Attribute-based Access Control over Named Data Networking
GNU General Public License v3.0
14 stars 11 forks source link

Consumer::handleTimeout uses the same nonce for retrying interest #34

Closed matianxing1992 closed 2 months ago

matianxing1992 commented 3 months ago

According to Consumer.cpp:267, the retrying interest will be dropped by NFDs because of the same nonce. Setting nonce to std::nullptr will simply solve this problem in my case. I'm not sure whether it's a bug or design.

Tianxing Ma

matianxing1992 commented 3 months ago

We need to add a new API to set default timeout time t and max retries number n. And for the retries, the timeout time would be t*2^n, which will allow a quicker retry at the beginning, and then wait for longer time for the incoming data in the end.