From: Peter van Dijk Date: Thu, 26 Jul 2018 14:24:06 +0000 (+0200) Subject: only load the Lua script in worker threads X-Git-Tag: dnsdist-1.3.3~182^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b388d28aef0346f1d51e39e0d3ebe3f440cdebe;p=thirdparty%2Fpdns.git only load the Lua script in worker threads --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 854275af96..6d3c7ccae7 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3603,16 +3603,18 @@ try setupNODThread(); #endif /* NOD_ENABLED */ - try { - if(!::arg()["lua-dns-script"].empty()) { - t_pdl = std::make_shared(); - t_pdl->loadFile(::arg()["lua-dns-script"]); - g_log<(); + t_pdl->loadFile(::arg()["lua-dns-script"]); + g_log<