]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
caches: improvements to STUB and future FORWARD modes
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 26 Apr 2017 15:39:05 +0000 (17:39 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 27 Apr 2017 16:06:40 +0000 (18:06 +0200)
commitf25bba6a38d05d0426c83455f07aded16d91605b
treefd8e3dcd2a0044081596da5e1d454d13fcf5f8e0
parentc6efd066b451f493c3f46c07eed00c72cceaaec9
caches: improvements to STUB and future FORWARD modes

Fixes #122, mostly.  CNAME chains aren't answered from cache in STUB
mode so far, because the current iterator would be unable to follow them.

Previously the caches avoided repeated lookups by checking if it has
a NS address for the query, which disabled any lookup in forwarding modes.
Now it sets the QUERY_NO_CACHE flag instead to stop repeating.

Also those more expensive kr_ta_covers_qry checks are deferred, so that
they're not done when not needed, e.g. in STUB or +cd mode.
NEWS
lib/layer/pktcache.c
lib/layer/rrcache.c