]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: introduce command to set aggressive NSEC cache size
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 17 Nov 2023 08:55:32 +0000 (09:55 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 17 Nov 2023 08:55:32 +0000 (09:55 +0100)
commit2ac00bd0268d3f1b4a63f67b4649365fc340f2ce
tree009a0a3981f8a4b408258204cc7ea071589d39b7
parentd6798a51907b874f72e3881a5b686917424f3634
rec: introduce command to set aggressive NSEC cache size

To avoid race conditions creating and destroying the cache, we do
not allow setting the cache size if it is not enabled from startup.
Also, setting the cache size to 0 does not disable the cache, it
just makes it mostly ineffective (entries can still appear in it
and get used until the purge task is run).

Fixes #13265.
pdns/recursordist/aggressive_nsec.hh
pdns/recursordist/docs/manpages/rec_control.1.rst
pdns/recursordist/rec_channel_rec.cc