Lower the max number of WebRTC peers in an announce to 5

This commit is contained in:
Feross Aboukhadijeh 2021-04-12 15:54:01 -07:00
parent 9801a63001
commit ce8ea41f27

View File

@ -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