Set interest timeout with interest.interestLifetime
diff --git a/js/NDN.js b/js/NDN.js
index f963a78..479ed30 100644
--- a/js/NDN.js
+++ b/js/NDN.js
@@ -32,8 +32,6 @@
NDN.OPENED = 1; // connection to ccnd opened
NDN.CLOSED = 2; // connection to ccnd closed
-NDN.InterestTimeOut = 5000; // 5000 ms timeout for pending interest
-
/* Java Socket Bridge and XPCOM transport */
NDN.prototype.createRoute = function(host,port){
@@ -70,7 +68,7 @@
interest.interestLifetime = template.interestLifetime;
}
else
- interest.interestLifetime = 4200;
+ interest.interestLifetime = 4200; // default interest timeout value
this.transport.expressInterest(this, interest, closure);
};