]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
cache: move setting EDE "Stale Answer" to the the serve_stale module.
authormenakite <29005531+menakite@users.noreply.github.com>
Wed, 14 Aug 2024 17:36:54 +0000 (19:36 +0200)
committermenakite <29005531+menakite@users.noreply.github.com>
Mon, 19 Aug 2024 16:03:59 +0000 (18:03 +0200)
commit39f4b5af72f3aca0174476235f43915477f20adb
tree56c975793fb3b54e149159fd88f5a8627f92ac1e
parente6411386e3e309938fc5ee61b42864c77790149f
cache: move setting EDE "Stale Answer" to the the serve_stale module.

It is not guaranteed yet that the request will finish in state DONE.
This prevents other EDE codes from being applied to the request and in
case the request ends in FAIL state it produces a SERVFAIL answer with
EDE "Stale Answer", which is a bit weird.
Move setting EDEs in answer_finalize in the serve_stale module, where
the proper EDE in case of NXDOMAIN is set too.
lib/cache/api.c
modules/serve_stale/serve_stale.lua