diff --git a/lib/Connection.js b/lib/Connection.js index d4745c087..731ccae50 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -44,7 +44,8 @@ class Connection { keepAlive: true, keepAliveMsecs: 1000, maxSockets: keepAliveFalse ? Infinity : 256, - maxFreeSockets: 256 + maxFreeSockets: 256, + scheduling: 'lifo' }, opts.agent) this.agent = this.url.protocol === 'http:' ? new http.Agent(agentOptions)