[Pkg-javascript-commits] [sockjs-client] 150/350: Parameterize info receiver timeout
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:03:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit bf17540f282df29912e3edc60a6ea90525f6eb0a
Author: Bryce Kahle <bkahle at gmail.com>
Date: Thu Oct 16 19:51:25 2014 -0400
Parameterize info receiver timeout
---
lib/info-receiver.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/info-receiver.js b/lib/info-receiver.js
index d054738..920826d 100644
--- a/lib/info-receiver.js
+++ b/lib/info-receiver.js
@@ -49,7 +49,7 @@ InfoReceiver.prototype.doXhr = function(baseUrl, AjaxObject) {
this.timeoutRef = setTimeout(function() {
self._cleanup(false);
self.emit('finish');
- }, 8000);
+ }, InfoReceiver.timeout);
this.xo.once('finish', function(info, rtt) {
self._cleanup(true);
@@ -71,4 +71,6 @@ InfoReceiver.prototype.close = function() {
this._cleanup(false);
};
+InfoReceiver.timeout = 8000;
+
module.exports = InfoReceiver;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list