From 0868ab915214bcc2642f61de21cd81a1bd43303f Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 11 Feb 2022 10:56:14 +0100 Subject: [PATCH] Add back TCP cleanup task that got lost somehow --- pdns/recursordist/rec-main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index e025c610ec..db31fde54a 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -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 -- 2.47.2