Updated default http agent configuration (#1242)

This commit is contained in:
Tomas Della Vedova
2020-07-09 09:01:05 +02:00
committed by GitHub
parent 34a9176fbf
commit d6c84f1a5d

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)