mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
Lower the max number of WebRTC peers in an announce to 5
This commit is contained in:
parent
9801a63001
commit
ce8ea41f27
@ -56,7 +56,7 @@ class WebSocketTracker extends Tracker {
|
|||||||
this._send(params)
|
this._send(params)
|
||||||
} else {
|
} else {
|
||||||
// Limit the number of offers that are generated, since it can be slow
|
// 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 => {
|
this._generateOffers(numwant, offers => {
|
||||||
params.numwant = numwant
|
params.numwant = numwant
|
||||||
|
Loading…
Reference in New Issue
Block a user