]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add back TCP cleanup task that got lost somehow 11291/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 11 Feb 2022 09:56:14 +0000 (10:56 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 11 Feb 2022 09:56:47 +0000 (10:56 +0100)
pdns/recursordist/rec-main.cc

index e025c610ec9bce2c5764b3fea59b17b0e50e7f04..db31fde54a025f201333d787763e925cec75bbf7 100644 (file)
@@ -1873,6 +1873,11 @@ static void houseKeeping(void*)
       SyncRes::pruneThrottledServers();
     });
 
+    static thread_local PeriodicTask pruneTCPTask{"pruneTCPTask", 5};
+    pruneThrottledTask.runIfDue(now, [now]() {
+      t_tcp_manager.cleanup(now);
+    });
+
     const auto& info = RecThreadInfo::self();
 
     // Below are the thread specific tasks for the handler and the taskThread