The Interest object interestLifetime is seconds, not milliseconds.
diff --git a/js/WebSocketTransport.js b/js/WebSocketTransport.js
index ce9a7c2..0396b93 100644
--- a/js/WebSocketTransport.js
+++ b/js/WebSocketTransport.js
@@ -154,7 +154,7 @@
// Fetch ccndid now
var interest = new Interest(new Name(ccndIdFetcher));
- interest.InterestLifetime = 4200;
+ interest.interestLifetime = 4.0; // seconds
var subarray = encodeToBinaryInterest(interest);
var bytes = new Uint8Array(subarray.length);
@@ -223,7 +223,7 @@
//console.log(PITTable);
// Raise closure callback
closure.upcall(Closure.UPCALL_INTEREST_TIMED_OUT, new UpcallInfo(ndn, interest, 0, null));
- }, interest.interestLifetime);
+ }, interest.interestLifetime * 1000); // convert interestLifetime from seconds to ms.
//console.log(closure.timerID);
}
else