From 1c3c4383c8bb1d43a6d975697bb37ab489250db6 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Sun, 24 Mar 2019 11:46:00 -0700 Subject: [PATCH] 0.2.10 0.2.9 up the initial connect timeout to 5 mintues, and reconnect to 2 seconds --- package.json | 2 +- src/consumer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b8c511e..cd078e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@uci/socket", - "version": "0.2.8", + "version": "0.2.10", "description": "JSON packet intra(named)/inter(TCP) host communication over socket", "main": "src", "scripts": { diff --git a/src/consumer.js b/src/consumer.js index 1fff8d3..6b33e22 100644 --- a/src/consumer.js +++ b/src/consumer.js @@ -47,8 +47,8 @@ class SocketConsumer extends Socket { this.opts = opts this.keepAlive = 'keepAlive' in opts ? opts.keepAlive : true this._ready = false - this.timeout = opts.timeout || 30 // 5 minutes and then rejects - this.wait = opts.wait || 1 + this.timeout = opts.timeout || 300 // 5 minutes and then rejects + this.wait = opts.wait || 2 this.stream = new JsonStream() // bind to class for other class functions this.connect = this.connect.bind(this)