From 284f4967f47bf0f070327c32bcfad47b7a91ca50 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 22 Aug 2019 12:40:19 +0200 Subject: [PATCH] fix(core): update --- ts/smartrequest.request.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ts/smartrequest.request.ts b/ts/smartrequest.request.ts index d3b111f..780a994 100644 --- a/ts/smartrequest.request.ts +++ b/ts/smartrequest.request.ts @@ -54,11 +54,17 @@ const parseSocketPathAndRoute = (stringToParseArg: string) => { }; }; +/** + * a custom http agent to make sure we can set custom keepAlive options for speedy subsequent calls + */ const httpAgent = new plugins.http.Agent({ keepAlive: true, keepAliveMsecs: 600000 }); +/** + * a custom https agent to make sure we can set custom keepAlive options for speedy subsequent calls + */ const httpsAgent = new plugins.https.Agent({ keepAlive: true, keepAliveMsecs: 600000