From e77430ac4e90e00849913e9d4ac05d4ce320cf08 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2020 09:01:45 +0200 Subject: [PATCH] [Backport 7.x] Updated default http agent configuration (#1250) Co-authored-by: Tomas Della Vedova --- 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)