Merge pull request #136 from cubedro/develop

Increased web3 connection attempt delay & limit
This commit is contained in:
Marian OANCΞA 2015-05-14 23:04:17 +03:00
commit accad7a73a

View File

@ -34,7 +34,7 @@ var UPDATE_INTERVAL = 5000;
var PING_INTERVAL = 2000;
var MINERS_LIMIT = 5;
var MAX_HISTORY_UPDATE = 50;
var MAX_CONNECTION_ATTEMPTS = 10;
var MAX_CONNECTION_ATTEMPTS = 15;
Socket = Primus.createSocket({
transformer: 'websockets',
@ -156,7 +156,7 @@ Node.prototype.checkWeb3Connection = function()
setTimeout(function ()
{
self.checkWeb3Connection();
}, 500 * this._connection_attempts);
}, 1000 * this._connection_attempts);
}
else
{