Updated default http agent configuration (#1242)
This commit is contained in:
committed by
GitHub
parent
34a9176fbf
commit
d6c84f1a5d
@ -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