[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:
committed by
GitHub
parent
13918d052a
commit
e77430ac4e
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user