diff --git a/lib/registry/request.js b/lib/registry/request.js index 9553c76..a9395d1 100644 --- a/lib/registry/request.js +++ b/lib/registry/request.js @@ -215,7 +215,8 @@ function client (opts) { var RegistryClient = require('npm-registry-client') CLIENT_OPTS = { log: opts.log, - retry: opts.retry + retry: opts.retry, + maxSockets: opts.maxSockets } CLIENT = new RegistryClient(CLIENT_OPTS) } diff --git a/lib/util/opt-check.js b/lib/util/opt-check.js index 06e4800..c024565 100644 --- a/lib/util/opt-check.js +++ b/lib/util/opt-check.js @@ -16,6 +16,7 @@ function PacoteOptions (opts) { this.hashAlgorithm = opts.hashAlgorithm || 'sha1' this.log = opts.log || silentlog this.maxAge = typeof opts.maxAge === 'undefined' ? 1000 : opts.maxAge + this.maxSockets = opts.maxSockets || 10 this.memoize = !!opts.memoize this.offline = opts.offline this.pkg = opts.pkg