Project

General

Profile

Actions

Bug #3342

closed

Interests without explicit InterestLifetime do not trigger onTimeout callback

Added by Mathias Gibbens about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
11/17/2015
Due date:
% Done:

0%

Estimated time:

Description

When creating an Interest if InterestLifetime is not explicitly set before calling Face.expressInterest() the onTimeout callback is never executed.

In Node.java the method expressInterestHelper() only sets up the timeout callback if InterestLifetime >= 0. Since InterestLifetime == -1 if not specified, the timeout callback is ignored.

I think this is a bug, and was certainly unexpected, since I had read at http://named-data.net/doc/NDN-TLV/current/interest.html#interestlifetime that the default timeout for an Interest would be 4 seconds if a timeout was not specified. I was expecting that the jndn library would call my timeout handler after 4 seconds. It seems that the correct behavior should be to use a (local) InterestLifetime of 4 seconds in expressInterestHelper() if InterestLifetime == -1.

I have attached a simple test case showing this issue.


Files

JNDNTest.java (1.54 KB) JNDNTest.java Simple code showing bug Mathias Gibbens, 11/17/2015 12:58 PM

Related issues 1 (0 open1 closed)

Has duplicate NDN-CCL - Task #3194: expressInterest should call onTimeout even for unspecified interest lifetimeDuplicate09/10/2015

Actions
Actions

Also available in: Atom PDF