Merge pull request #3400 from bluewave-labs/fix/dns-cache-ttl
fix: set DNS cache TTL to prevent stale lookups
This commit is contained in:
1 file changed
+1
-1
@@ -15,7 +15,7 @@ export class HttpProvider implements IStatusProvider<HttpStatusPayload> {
|
|||||||
private got: Got,
|
private got: Got,
|
||||||
private advancedMatcher: AdvancedMatcher
|
private advancedMatcher: AdvancedMatcher
|
||||||
) {
|
) {
|
||||||
const cacheable = new CacheableLookup();
|
const cacheable = new CacheableLookup({ maxTtl: 300, errorTtl: 30 });
|
||||||
this.got = got.extend({
|
this.got = got.extend({
|
||||||
dnsCache: cacheable,
|
dnsCache: cacheable,
|
||||||
timeout: {
|
timeout: {
|
||||||
|
|||||||
Reference in new issue
Block a user