]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
policy.DEBUG_IF: avoid creating new callbacks on every request
authorPetr Špaček <petr.spacek@nic.cz>
Wed, 25 Mar 2020 12:21:49 +0000 (13:21 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 25 Mar 2020 14:22:41 +0000 (15:22 +0100)
commitd3eb8041eb660c4e99ba7d432472ef3699e6affc
tree3f3c980b15d9ffb690f4225e948d765e3b840546
parent83629f6b0b10751520e2e8f0852085777ba251c9
policy.DEBUG_IF: avoid creating new callbacks on every request

This new approach uses per-request variables in Lua and creates new
callback for each DEBUG_IF call instead of each request.
daemon/lua/kres-gen.lua
daemon/lua/kres-gen.sh
daemon/lua/kres.lua
lib/utils.c
lib/utils.h
modules/http/http_trace.lua
modules/policy/policy.lua
modules/watchdog/watchdog.lua