fix(core): update
This commit is contained in:
@ -8,3 +8,10 @@ import * as url from 'url';
|
||||
import * as smartpromise from '@pushrocks/smartpromise';
|
||||
|
||||
export { formData, http, https, fs, path, url, smartpromise };
|
||||
|
||||
// third party scope
|
||||
import * as agentkeepalive from 'agentkeepalive';
|
||||
|
||||
export {
|
||||
agentkeepalive
|
||||
};
|
||||
|
@ -57,10 +57,7 @@ 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
|
||||
});
|
||||
const httpAgent = new plugins.agentkeepalive.default();
|
||||
|
||||
/**
|
||||
* a custom http agent to make sure we can set custom keepAlive options for speedy subsequent calls
|
||||
@ -74,10 +71,7 @@ const httpAgentKeepAliveFalse = new plugins.http.Agent({
|
||||
/**
|
||||
* 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
|
||||
});
|
||||
const httpsAgent = new plugins.agentkeepalive.HttpsAgent();
|
||||
|
||||
/**
|
||||
* a custom https agent to make sure we can set custom keepAlive options for speedy subsequent calls
|
||||
|
Reference in New Issue
Block a user