]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
nsrep: respect NO_THROTTLE for timeouted nameservers
authorMarek Vavruša <mvavrusa@cloudflare.com>
Tue, 24 Apr 2018 23:11:16 +0000 (16:11 -0700)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 7 Sep 2018 17:45:21 +0000 (10:45 -0700)
lib/nsrep.c

index 3558cf715b741f96fa9969491b56bfd4e8d6d0e4..386a4528311b0f13e4a322010bdf324aec4c9d91 100644 (file)
@@ -249,7 +249,7 @@ static int eval_nsrep(const knot_dname_t *owner, const pack_t *addr_set, struct
         * Servers on TIMEOUT will not have probed at all.
         * Servers with score above KR_NS_LONG will have periodically removed from
         * reputation cache, so that kresd can reprobe them. */
-       if (score >= KR_NS_TIMEOUT) {
+       if (score >= KR_NS_TIMEOUT && !(qry->flags.NO_THROTTLE)) {
                return kr_ok();
        } else if (score <= ns->score &&
           (score < KR_NS_LONG  || qry->flags.NO_THROTTLE)) {