From b00d674b6ff5d6f9530c35bc2e4eb70c4341c269 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 8 Sep 2019 17:57:28 +0200 Subject: [PATCH] fix(core): update --- ts/smartrequest.request.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/smartrequest.request.ts b/ts/smartrequest.request.ts index 5b709a7..472430d 100644 --- a/ts/smartrequest.request.ts +++ b/ts/smartrequest.request.ts @@ -66,8 +66,9 @@ const httpAgent = new plugins.http.Agent({ * a custom http agent to make sure we can set custom keepAlive options for speedy subsequent calls */ const httpAgentKeepAliveFalse = new plugins.http.Agent({ + maxFreeSockets: 0, keepAlive: false, - keepAliveMsecs: 600000 + keepAliveMsecs: 0 }); /** @@ -82,8 +83,9 @@ const httpsAgent = new plugins.https.Agent({ * a custom https agent to make sure we can set custom keepAlive options for speedy subsequent calls */ const httpsAgentKeepAliveFalse = new plugins.https.Agent({ + maxFreeSockets: 0, keepAlive: false, - keepAliveMsecs: 600000 + keepAliveMsecs: 0 }); export let request = async (