mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
Lower reconnect min and increase variance
This will allow servers to "breathe" when lots of peers are reconnecting.
This commit is contained in:
parent
76a1077c09
commit
f7d3e9b7c0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user