]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
subtract 1000 so it is more than the RTT_BAND
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 26 Oct 2010 15:41:23 +0000 (15:41 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 26 Oct 2010 15:41:23 +0000 (15:41 +0000)
git-svn-id: file:///svn/unbound/trunk@2313 be551aaa-1e26-0410-a405-d3ace91eadb9

services/cache/infra.c

index daa97a1d1c77134f9cb5e54588fc3b4685587fcf..d6b542308e1a89f42a53dec91aa2a9fd5f105eb1 100644 (file)
@@ -497,7 +497,7 @@ infra_update_tcp_works(struct infra_cache* infra,
        if(data->rtt.rto >= RTT_MAX_TIMEOUT)
                /* do not disqualify this server altogether, it is better
                 * than nothing */
-               data->rtt.rto = RTT_MAX_TIMEOUT-1;
+               data->rtt.rto = RTT_MAX_TIMEOUT-1000;
        lock_rw_unlock(&e->lock);
 }
 
@@ -641,7 +641,7 @@ infra_get_lame_rtt(struct infra_cache* infra,
                /* expired entry */
                /* see if this can be a re-probe of an unresponsive server */
                if(host->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT) {
-                       *rtt = USEFUL_SERVER_TOP_TIMEOUT-1;
+                       *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
                        lock_rw_unlock(&e->lock);
                        return 1;
                }