diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 75b592b..f218408 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartrequest', - version: '2.0.4', + version: '2.0.5', description: 'dropin replacement for request' } diff --git a/ts/smartrequest.request.ts b/ts/smartrequest.request.ts index 2f21ffe..5654eb1 100644 --- a/ts/smartrequest.request.ts +++ b/ts/smartrequest.request.ts @@ -59,16 +59,13 @@ const parseSocketPathAndRoute = (stringToParseArg: string) => { */ const httpAgent = new plugins.agentkeepalive({ keepAlive: true, - maxFreeSockets: 1, - maxSockets: 100, - maxTotalSockets: 1000, + maxFreeSockets: 10, }); /** * a custom http agent to make sure we can set custom keepAlive options for speedy subsequent calls */ const httpAgentKeepAliveFalse = new plugins.https.Agent({ - maxFreeSockets: 0, keepAlive: false }); @@ -77,9 +74,7 @@ const httpAgentKeepAliveFalse = new plugins.https.Agent({ */ const httpsAgent = new plugins.agentkeepalive.HttpsAgent({ keepAlive: true, - maxFreeSockets: 1, - maxSockets: 100, - maxTotalSockets: 1000, + maxFreeSockets: 10, }); /**