increased web3 connection attempt delay & limit

This commit is contained in:
cubedro 2015-05-14 23:03:52 +03:00
parent 87916a3307
commit deeea3b890

View File

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