mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-15 16:48:05 -05:00
subtract 1000 so it is more than the RTT_BAND
git-svn-id: file:///svn/unbound/trunk@2313 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a6b302f117
commit
fdfa7b2793
1 changed files with 2 additions and 2 deletions
4
services/cache/infra.c
vendored
4
services/cache/infra.c
vendored
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue