Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
feat(request): accept maxSockets opt
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Mar 9, 2017
1 parent b5db7ae commit 3987807
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/registry/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions lib/util/opt-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3987807

Please sign in to comment.