Make fast-retry more configurable and do exponential backoff.

This commit is contained in:
Simon Kelley
2022-09-14 16:16:08 +01:00
parent 8f2d432799
commit 9a9f6e147c
5 changed files with 40 additions and 18 deletions

View File

@@ -758,6 +758,7 @@ struct frec {
int forwardall, flags;
time_t time;
u32 forward_timestamp;
int forward_delay;
unsigned char *hash[HASH_SIZE];
struct blockdata *stash; /* Saved reply, whilst we validate */
size_t stash_len;
@@ -1187,7 +1188,7 @@ extern struct daemon {
int dump_mask;
unsigned long soa_sn, soa_refresh, soa_retry, soa_expiry;
u32 metrics[__METRIC_MAX];
int fast_retry_time;
int fast_retry_time, fast_retry_timeout;
#ifdef HAVE_DNSSEC
struct ds_config *ds;
char *timestamp_file;