mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
limit webrtc offers to 10
This commit is contained in:
parent
02c92fd2ba
commit
d40eeccf4d
@ -43,9 +43,9 @@ WebSocketTracker.prototype.announce = function (opts) {
|
||||
opts.info_hash = self.client._infoHash.toString('binary')
|
||||
opts.peer_id = self.client._peerId.toString('binary')
|
||||
|
||||
// Limit number of offers to only 5 (temporarily)
|
||||
// Limit number of offers (temporarily)
|
||||
// TODO: remove this when we cleanup old RTCPeerConnections cleanly
|
||||
if (opts.numWant > 5) opts.numWant = 5
|
||||
if (opts.numWant > 10) opts.numWant = 10
|
||||
|
||||
self._generateOffers(opts.numWant, function (offers) {
|
||||
opts.offers = offers
|
||||
|
Loading…
Reference in New Issue
Block a user