From 66bf2e761ae26e7ffdd89dfdf6f1eb9775b9ca4f Mon Sep 17 00:00:00 2001 From: Andreas Jakum Date: Wed, 18 Nov 2015 01:10:53 +0100 Subject: [PATCH] Fix incorrect hardcoded timeframe in server-down throttling log line. Fixes #1878. --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index b50772e7a..4b8fdd591 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1024,7 +1024,7 @@ int SyncRes::doResolveAt(set nameservers, DNSName auth, bool flawedNSSe // code below makes sure we don't filter COM or the root if (s_serverdownmaxfails > 0 && (auth != DNSName(".")) && t_sstorage->fails.incr(*remoteIP) >= s_serverdownmaxfails) { - LOG(prefix<toString() <<". Going full throttle for 1 minute" <toString() <<". Going full throttle for "<< s_serverdownthrottletime <<" seconds" <throttle.throttle(d_now.tv_sec, boost::make_tuple(*remoteIP, "", 0), s_serverdownthrottletime, 10000); // mark server as down } else if(resolveret==-1) t_sstorage->throttle.throttle(d_now.tv_sec, boost::make_tuple(*remoteIP, qname, qtype.getCode()), 60, 100); // unreachable, 1 minute or 100 queries -- 2.40.0