]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that flush_zone sets prefetch ttl expired, so that with
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 9 Apr 2018 07:39:59 +0000 (07:39 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 9 Apr 2018 07:39:59 +0000 (07:39 +0000)
  serve-expired enabled it'll start prefetching those entries.

git-svn-id: file:///svn/unbound/trunk@4609 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/remote.c
doc/Changelog
doc/unbound-control.8.in

index 58cdde1e2cc03c95282c46f614bdf80c83be4eb1..47c0f40505d19036ed2ec5801dd8fd3479bf4ad1 100644 (file)
@@ -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++;
                }
        }
index 13a8804211fb96d83ebca84e63ee3b4553bdbadc..c03c2b9d720a708c0d730b91d9017730aa9bc1f2 100644 (file)
@@ -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.
index 0cc632e7c0fa6bf34e77623846a11e1bab826159..601d86ee76f1d6e7a31c3ae7c37a064a85c3394f 100644 (file)
@@ -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.