[Backport 7.x] Updated default http agent configuration (#1250)

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2020-07-09 09:01:45 +02:00
committed by GitHub
parent 13918d052a
commit e77430ac4e

View File

@ -44,7 +44,8 @@ class Connection {
keepAlive: true, keepAlive: true,
keepAliveMsecs: 1000, keepAliveMsecs: 1000,
maxSockets: keepAliveFalse ? Infinity : 256, maxSockets: keepAliveFalse ? Infinity : 256,
maxFreeSockets: 256 maxFreeSockets: 256,
scheduling: 'lifo'
}, opts.agent) }, opts.agent)
this.agent = this.url.protocol === 'http:' this.agent = this.url.protocol === 'http:'
? new http.Agent(agentOptions) ? new http.Agent(agentOptions)