Lower reconnect min and increase variance

This will allow servers to "breathe" when lots of peers are reconnecting.
This commit is contained in:
Diego Rodríguez Baquero 2018-11-22 10:59:34 -05:00 committed by GitHub
parent 76a1077c09
commit f7d3e9b7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,9 @@ var socketPool = {}
// Normally this shouldn't be accessed but is occasionally useful
WebSocketTracker._socketPool = socketPool
var RECONNECT_MINIMUM = 15 * 1000
var RECONNECT_MINIMUM = 10 * 1000
var RECONNECT_MAXIMUM = 30 * 60 * 1000
var RECONNECT_VARIANCE = 30 * 1000
var RECONNECT_VARIANCE = 2 * 60 * 1000
var OFFER_TIMEOUT = 50 * 1000
inherits(WebSocketTracker, Tracker)