fix(core): update
This commit is contained in:
parent
6d970cb925
commit
43d4b47782
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartrequest',
|
||||
version: '2.0.4',
|
||||
version: '2.0.5',
|
||||
description: 'dropin replacement for request'
|
||||
}
|
||||
|
@ -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,
|
||||
});
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user