Skip to content

Commit d40eecc

Browse files
committed
limit webrtc offers to 10
1 parent 02c92fd commit d40eecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/websocket-tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ WebSocketTracker.prototype.announce = function (opts) {
4343
opts.info_hash = self.client._infoHash.toString('binary')
4444
opts.peer_id = self.client._peerId.toString('binary')
4545

46-
// Limit number of offers to only 5 (temporarily)
46+
// Limit number of offers (temporarily)
4747
// TODO: remove this when we cleanup old RTCPeerConnections cleanly
48-
if (opts.numWant > 5) opts.numWant = 5
48+
if (opts.numWant > 10) opts.numWant = 10
4949

5050
self._generateOffers(opts.numWant, function (offers) {
5151
opts.offers = offers

0 commit comments

Comments
 (0)