]> granicus.if.org Git - pdns/commitdiff
REVERT ME: allow way longer execution
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 19 Mar 2018 14:27:49 +0000 (15:27 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 19 Mar 2018 14:27:49 +0000 (15:27 +0100)
pdns/lua-record.cc

index 8f21f83d9f4d93ce3318f516085561d02e805247..1b8870dd26a0bb01f1655f9c0eddaa5daff7d3dc 100644 (file)
@@ -732,7 +732,7 @@ std::vector<shared_ptr<DNSRecordContent>> luaSynth(const std::string& code, cons
   lua.writeFunction("report", [&counter](string event, boost::optional<string> 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) {