From: Peter van Dijk Date: Mon, 19 Mar 2018 14:27:49 +0000 (+0100) Subject: REVERT ME: allow way longer execution X-Git-Tag: dnsdist-1.3.1~136^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=218a0550b36bbdfeb11de1cc6624509294bbaed9;p=thirdparty%2Fpdns.git REVERT ME: allow way longer execution --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 8f21f83d9f..1b8870dd26 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -732,7 +732,7 @@ std::vector> luaSynth(const std::string& code, cons lua.writeFunction("report", [&counter](string event, boost::optional line){ throw std::runtime_error("Script took too long"); }); - lua.executeCode("debug.sethook(report, '', 1000)"); + lua.executeCode("debug.sethook(report, '', 1000000)"); // TODO: make this better. Accept netmask/CA objects; provide names for the attr constants lua.writeFunction("geoiplookup", [](const string &ip, const GeoIPInterface::GeoIPQueryAttribute attr) {