]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth LUA: better thread names
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 9 Sep 2024 14:04:00 +0000 (16:04 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 25 Sep 2024 11:48:24 +0000 (13:48 +0200)
(cherry picked from commit 9efb060542d8dbdab9384f626acf312e0266c27c)

pdns/lua-record.cc

index e9b08e662387219560a0ff5603323bcb93946677..795973230c8902ae56c82ecbf5c554f7a2b16b73 100644 (file)
@@ -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();