From d6c84f1a5dc3eb0539227e4f7f0e2d042355430b Mon Sep 17 00:00:00 2001 From: Tomas Della Vedova Date: Thu, 9 Jul 2020 09:01:05 +0200 Subject: [PATCH] Updated default http agent configuration (#1242) --- lib/Connection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)