From 218a0550b36bbdfeb11de1cc6624509294bbaed9 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 19 Mar 2018 15:27:49 +0100 Subject: [PATCH] REVERT ME: allow way longer execution --- pdns/lua-record.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2