From ce8ea41f276ddb1251f26107e968ec33cf37966d Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 12 Apr 2021 15:54:01 -0700 Subject: [PATCH] Lower the max number of WebRTC peers in an announce to 5 --- lib/client/websocket-tracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/websocket-tracker.js b/lib/client/websocket-tracker.js index 907b5d3..6e71e76 100644 --- a/lib/client/websocket-tracker.js +++ b/lib/client/websocket-tracker.js @@ -56,7 +56,7 @@ class WebSocketTracker extends Tracker { this._send(params) } else { // Limit the number of offers that are generated, since it can be slow - const numwant = Math.min(opts.numwant, 10) + const numwant = Math.min(opts.numwant, 5) this._generateOffers(numwant, offers => { params.numwant = numwant