]> git.ipfire.org Git - thirdparty/pdns.git/commit
Introduce an auto cache refresh mechanism. 9699/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 26 Oct 2020 10:36:39 +0000 (11:36 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Tue, 12 Jan 2021 09:20:17 +0000 (10:20 +0100)
commit87c4554af8473926ae985ae1e19ae19f41ec0dc5
tree0f29ec3242a9f7afd9b1bc2c5d6c4140fd100786
parentd49bc4b52ada2bcf42f7fef845b953d52c9bcf13
Introduce an auto cache refresh mechanism.

If cache records are consulted and seen as "almost-expired"
schedule a task to refetch that record. Default off, enable using
refresh-on-ttl-perc.
21 files changed:
pdns/pdns_recursor.cc
pdns/rec_channel_rec.cc
pdns/recpacketcache.cc
pdns/recpacketcache.hh
pdns/recursor_cache.cc
pdns/recursor_cache.hh
pdns/recursordist/Makefile.am
pdns/recursordist/docs/settings.rst
pdns/recursordist/rec-taskqueue.cc [new file with mode: 0644]
pdns/recursordist/rec-taskqueue.hh [new file with mode: 0644]
pdns/recursordist/taskqueue.cc [new file with mode: 0644]
pdns/recursordist/taskqueue.hh [new file with mode: 0644]
pdns/recursordist/test-recursorcache_cc.cc
pdns/recursordist/test-syncres_cc.cc
pdns/recursordist/test-syncres_cc3.cc
pdns/recursordist/test-syncres_cc7.cc
pdns/recursordist/test-syncres_cc8.cc
pdns/recursordist/test-syncres_cc9.cc
pdns/syncres.cc
pdns/syncres.hh
regression-tests/recursor-test