Change Interest.interestLifetime to be milliseconds (not seconds).
diff --git a/js/WebSocketTransport.js b/js/WebSocketTransport.js
index ae69e49..dcec482 100644
--- a/js/WebSocketTransport.js
+++ b/js/WebSocketTransport.js
@@ -172,7 +172,7 @@
// Fetch ccndid now
var interest = new Interest(new Name(NDN.ccndIdFetcher));
- interest.interestLifetime = 4.0; // seconds
+ interest.interestLifetime = 4000; // milliseconds
var subarray = encodeToBinaryInterest(interest);
var bytes = new Uint8Array(subarray.length);
@@ -224,7 +224,7 @@
//console.log(NDN.PITTable);
// Raise closure callback
closure.upcall(Closure.UPCALL_INTEREST_TIMED_OUT, new UpcallInfo(ndn, interest, 0, null));
- }, interest.interestLifetime * 1000); // convert interestLifetime from seconds to ms.
+ }, interest.interestLifetime); // interestLifetime is in milliseconds.
//console.log(closure.timerID);
}
else