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:
authorDiego Rodríguez Baquero <diegorbaquero@gmail.com>2016-03-30 09:45:14 +0300
committerDiego Rodríguez Baquero <diegorbaquero@gmail.com>2016-03-30 09:45:14 +0300
commit4b2ea306fd1d16fd36b44565971cb7c355fe9768 (patch)
tree4b61ef21d50c1239004d1740ac6202b7d71acbf3 /lib
parent6a7f4386aed9d142deef856eaa562fa718d40895 (diff)
Max Web Connections Default to 4
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 2cc0800..2bff2e1 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