]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2026. [bug] Rate limit the recursive client exceeded message.
authorMark Andrews <marka@isc.org>
Thu, 18 May 2006 03:19:09 +0000 (03:19 +0000)
committerMark Andrews <marka@isc.org>
Thu, 18 May 2006 03:19:09 +0000 (03:19 +0000)
                        [RT #16044]

CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index 813e552ccebacab7e4e4ee51daf75e08a5de1c11..0e780773dd9b2f7a1d931ca344f79e50bbb75491 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2026.  [bug]           Rate limit the recursive client exceeded message.
+                       [RT #16044]
+
 2024.  [bug]           named emited spurious "zone serial unchanged"
                        messages on reload. [RT #16027]
 
index 329d7ca87e065d8f0bcbaf6151bbdece1611b9ce..3927d8a5e7b74866a10fc0fa1a1f3f9eacf231bb 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.198.2.26 2006/05/16 03:31:09 marka Exp $ */
+/* $Id: query.c,v 1.198.2.27 2006/05/18 03:19:09 marka Exp $ */
 
 #include <config.h>
 
@@ -2117,10 +2117,17 @@ query_recurse(ns_client_t *client, dns_rdatatype_t qtype, dns_name_t *qdomain,
                    (client->attributes & NS_CLIENTATTR_TCP) == 0)
                        result = ns_client_replace(client);
                if (result != ISC_R_SUCCESS) {
-                       ns_client_log(client, NS_LOGCATEGORY_CLIENT,
-                                     NS_LOGMODULE_QUERY, ISC_LOG_WARNING,
-                                     "no more recursive clients: %s",
-                                     isc_result_totext(result));
+                       static isc_stdtime_t last = 0;
+                       isc_stdtime_t now;
+                       isc_stdtime_get(&now);
+                       if (now != last) {
+                               last = now;
+                               ns_client_log(client, NS_LOGCATEGORY_CLIENT,
+                                             NS_LOGMODULE_QUERY,
+                                             ISC_LOG_WARNING,
+                                             "no more recursive clients: %s",
+                                             isc_result_totext(result));
+                       }
                        return (result);
                }
        }