From fdfa7b2793ab413a37672fb614c00277c556f281 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 26 Oct 2010 15:41:23 +0000 Subject: [PATCH] subtract 1000 so it is more than the RTT_BAND git-svn-id: file:///svn/unbound/trunk@2313 be551aaa-1e26-0410-a405-d3ace91eadb9 --- services/cache/infra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/cache/infra.c b/services/cache/infra.c index daa97a1d1..d6b542308 100644 --- a/services/cache/infra.c +++ b/services/cache/infra.c @@ -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; } -- 2.47.2