Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-04-06 10:37:05 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-04-06 10:37:05 +0300
commit796e28ae66dec1d3ac7c21aaf85a76cbee1b3151 (patch)
treedc40159fc811e745886fab87ba55f15ff74c2028 /lib
parentbb0a926d718728fe5466370374783437cc19c994 (diff)
parent7205c151a044d121f529cac653bcf52a0a222a7a (diff)
Merge pull request #710 from feross/max-web-conns-default
Max web conns default
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 01f08e0..0f99ee9 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -75,7 +75,7 @@ function Torrent (torrentId, client, opts) {
this.strategy = opts.strategy || 'sequential'
- this.maxWebConns = opts.maxWebConns
+ this.maxWebConns = opts.maxWebConns || 4
this._rechokeNumSlots = (opts.uploads === false || opts.uploads === 0)
? 0