From 2c2d6ba3440265f63717521f33dc5f2e6cdebeb1 Mon Sep 17 00:00:00 2001 From: Jonathan Samples Date: Fri, 9 Oct 2015 15:35:15 -0700 Subject: [PATCH 1/2] Reverted to the old version of socketio client --- package.json | 2 +- src/client.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c98f753..e3996a7 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dependencies": { "node-uuid": "^1.4.3", "q": "1.4.1", - "socket.io-client": "^1.3.7", + "socket.io-client": "^0.9.9", "sprintf": "^0.1.5" }, "main": "loader.js", diff --git a/src/client.js b/src/client.js index 97483f0..2bce01d 100644 --- a/src/client.js +++ b/src/client.js @@ -33,10 +33,11 @@ class LoaderClient extends EventEmitter{ * @returns {*|promise} */ connect(){ - this._socket = io(this.endpoint, { - transports: ['websocket'], - secure: true - } + this._socket = io.connect(this.endpoint + //{ + // transports: ['websocket'], + // secure: true + //} ); this._socket.on('connect', this._onConnected.bind(this)); this._socket.on('disconnect', this._onDisconnected.bind(this)); From ff48d3feecfa9edbffe3ac6e592c760ecac7e009 Mon Sep 17 00:00:00 2001 From: Jonathan Samples Date: Sun, 11 Oct 2015 23:21:27 -0700 Subject: [PATCH 2/2] Extended the timeout --- src/profile_container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profile_container.js b/src/profile_container.js index 2f6fe9e..64999da 100644 --- a/src/profile_container.js +++ b/src/profile_container.js @@ -39,7 +39,7 @@ class ProfileContainer{ if(!promise) this.handleError('No promise returned by profile: '+this.profilePath); - promise.timeout(60000) + promise.timeout(120000) .then(() => { process.send({stats: this.client.stats.stats, time: this.time}); },(err) => {