]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
modules/{http,watchdog}: fix stability problems
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 10 Feb 2021 11:56:14 +0000 (12:56 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 11 Feb 2021 10:00:52 +0000 (11:00 +0100)
commitc07676547c037a721e5c842453adc4b8dd43c8ae
tree64ee323ae463c07dd136f5c5519f9608302517eb
parentfdb3d720f425d298d4373a492a970f8ce0834afd
modules/{http,watchdog}: fix stability problems

As first noted in commit d1a229ae9, in some cases we do call chains that
are not supported for JIT in LuaJIT.

I'm not 100% sure all of these are needed to comply, but the functions
here are really small and probably not to be that heavily used,
so I don't think it will be costly to interpret them
(and avoiding crashes is more important).

In my tests this fixed occasional crashes when using http://*/trace/*
modules/http/http_trace.lua
modules/watchdog/watchdog.lua