From: Peter van Dijk Date: Mon, 9 Sep 2024 14:04:00 +0000 (+0200) Subject: auth LUA: better thread names X-Git-Tag: auth-4.9.2~5^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bcdea2b83624db46bea4f6ca8cdf7a6de75e048;p=thirdparty%2Fpdns.git auth LUA: better thread names (cherry picked from commit 9efb060542d8dbdab9384f626acf312e0266c27c) --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index e9b08e6623..795973230c 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -90,6 +90,8 @@ public: private: void checkURL(const CheckDesc& cd, const bool status, const bool first = false) { + setThreadName("pdns/lua-c-url"); + string remstring; try { int timeout = 2; @@ -138,6 +140,7 @@ private: } } void checkTCP(const CheckDesc& cd, const bool status, const bool first = false) { + setThreadName("pdns/lua-c-tcp"); try { int timeout = 2; if (cd.opts.count("timeout")) { @@ -168,6 +171,7 @@ private: } void checkThread() { + setThreadName("pdns/luaupcheck"); while (true) { std::chrono::system_clock::time_point checkStart = std::chrono::system_clock::now();