]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Clarify the use of MAX_SENT_COUNT in the iterator code.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Tue, 18 Oct 2022 10:29:07 +0000 (12:29 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Tue, 18 Oct 2022 10:29:07 +0000 (12:29 +0200)
doc/Changelog
iterator/iterator.c
iterator/iterator.h

index 36192be81f25964140298b700adbaadfad646f1c..a30373f527fa0d7340fe9523bf9d63371dc732df 100644 (file)
@@ -1,3 +1,6 @@
+18 October 2022: George
+       - Clarify the use of MAX_SENT_COUNT in the iterator code.
+
 17 October 2022: Wouter
        - testcode/dohclient sets log identity to its name.
 
index 2f3ad06fe6ea44cf48abf19a1332ceb70d5b1a77..9c8d256d36132021088c7d7deac38058dd186ae3 100644 (file)
@@ -2276,7 +2276,6 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
                iq->num_current_queries, iq->sent_count);
 
        /* Make sure that we haven't run away */
-       /* FIXME: is this check even necessary? */
        if(iq->referral_count > MAX_REFERRAL_COUNT) {
                verbose(VERB_QUERY, "request has exceeded the maximum "
                        "number of referrrals with %d", iq->referral_count);
index e35718cf33bdc4103f3a4652440445b2a37fe9fe..18d3270a0c159c9b0a0c47be57f0c48b28b6340a 100644 (file)
@@ -67,7 +67,8 @@ struct rbtree_type;
 #define MAX_RESTART_COUNT      11
 /** max number of referrals. Makes sure resolver does not run away */
 #define MAX_REFERRAL_COUNT     130
-/** max number of queries-sent-out.  Make sure large NS set does not loop */
+/** max number of queries-sent-out. Make sure large NS set does not loop.
+ *  Resets on query restarts (e.g., CNAMES) and referrals. */
 #define MAX_SENT_COUNT         32
 /** max number of queries for which to perform dnsseclameness detection,
  * (rrsigs missing detection) after that, just pick up that response */