|
|
@ -443,6 +443,7 @@ class Monitor extends BeanModel {
|
|
|
|
const httpsAgentOptions = {
|
|
|
|
const httpsAgentOptions = {
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|
rejectUnauthorized: !this.getIgnoreTls(),
|
|
|
|
rejectUnauthorized: !this.getIgnoreTls(),
|
|
|
|
|
|
|
|
secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
log.debug("monitor", `[${this.name}] Prepare Options for axios`);
|
|
|
|
log.debug("monitor", `[${this.name}] Prepare Options for axios`);
|
|
|
@ -697,6 +698,7 @@ class Monitor extends BeanModel {
|
|
|
|
httpsAgent: CacheableDnsHttpAgent.getHttpsAgent({
|
|
|
|
httpsAgent: CacheableDnsHttpAgent.getHttpsAgent({
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|
rejectUnauthorized: !this.getIgnoreTls(),
|
|
|
|
rejectUnauthorized: !this.getIgnoreTls(),
|
|
|
|
|
|
|
|
secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
httpAgent: CacheableDnsHttpAgent.getHttpAgent({
|
|
|
|
httpAgent: CacheableDnsHttpAgent.getHttpAgent({
|
|
|
|
maxCachedSessions: 0,
|
|
|
|
maxCachedSessions: 0,
|
|
|
@ -749,6 +751,7 @@ class Monitor extends BeanModel {
|
|
|
|
httpsAgent: CacheableDnsHttpAgent.getHttpsAgent({
|
|
|
|
httpsAgent: CacheableDnsHttpAgent.getHttpsAgent({
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|
rejectUnauthorized: !this.getIgnoreTls(),
|
|
|
|
rejectUnauthorized: !this.getIgnoreTls(),
|
|
|
|
|
|
|
|
secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
httpAgent: CacheableDnsHttpAgent.getHttpAgent({
|
|
|
|
httpAgent: CacheableDnsHttpAgent.getHttpAgent({
|
|
|
|
maxCachedSessions: 0,
|
|
|
|
maxCachedSessions: 0,
|
|
|
|