From: Wouter Wijngaards Date: Mon, 9 Apr 2018 07:39:59 +0000 (+0000) Subject: - Fix that flush_zone sets prefetch ttl expired, so that with X-Git-Tag: release-1.7.1rc1~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e5abca6b7f40a042b6453dccadcb5aa8ab558bb;p=thirdparty%2Funbound.git - Fix that flush_zone sets prefetch ttl expired, so that with serve-expired enabled it'll start prefetching those entries. git-svn-id: file:///svn/unbound/trunk@4609 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/remote.c b/daemon/remote.c index 58cdde1e2..47c0f4050 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -1649,6 +1649,7 @@ zone_del_msg(struct lruhash_entry* e, void* arg) struct reply_info* d = (struct reply_info*)e->data; if(d->ttl > inf->expired) { d->ttl = inf->expired; + d->prefetch_ttl = inf->expired; inf->num_msgs++; } } diff --git a/doc/Changelog b/doc/Changelog index 13a880421..c03c2b9d7 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +9 April 2018: Wouter + - Fix that flush_zone sets prefetch ttl expired, so that with + serve-expired enabled it'll start prefetching those entries. + 5 April 2018: Wouter - Combine write of tcp length and tcp query for dns over tls. - nitpick fixes in example.conf. diff --git a/doc/unbound-control.8.in b/doc/unbound-control.8.in index 0cc632e7c..601d86ee7 100644 --- a/doc/unbound-control.8.in +++ b/doc/unbound-control.8.in @@ -144,6 +144,9 @@ Remove the name, type information from the cache. Remove all information at or below the name from the cache. The rrsets and key entries are removed so that new lookups will be performed. This needs to walk and inspect the entire cache, and is a slow operation. +The entries are set to expired in the implementation of this command (so, +with serve\-expired enabled, it'll serve that information but schedule a +prefetch for new information). .TP .B flush_bogus Remove all bogus data from the cache.