]> 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>
Mon, 9 Sep 2024 14:04:00 +0000 (16:04 +0200)
pdns/lua-record.cc

index 6c33cf3d515efb8e04417372f59114b312dde388..8f028b4da27aa4f0b3e0e64d480727b81fff2c16 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();