summaryrefslogtreecommitdiff
path: root/services/cache/infra.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-08-05 20:02:55 +0000
committerCy Schubert <cy@FreeBSD.org>2022-08-05 20:02:55 +0000
commit9b76d32f2310b735dbeb896cbf2776cad61f23e8 (patch)
treecac9730d14d9c15b0c773429e65bba9e97506c93 /services/cache/infra.c
parentd57351465531b38689892ec862de2725b52842dd (diff)
Diffstat (limited to 'services/cache/infra.c')
-rw-r--r--services/cache/infra.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/cache/infra.c b/services/cache/infra.c
index 252e1e288b35..0461c815b86b 100644
--- a/services/cache/infra.c
+++ b/services/cache/infra.c
@@ -721,13 +721,13 @@ infra_get_lame_rtt(struct infra_cache* infra,
else *rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
}
}
+ /* expired entry */
if(timenow > host->ttl) {
- /* expired entry */
+
/* see if this can be a re-probe of an unresponsive server */
/* minus 1000 because that is outside of the RTTBAND, so
* blacklisted servers stay blacklisted if this is chosen */
- if(host->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT ||
- infra->infra_keep_probing) {
+ if(host->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT) {
lock_rw_unlock(&e->lock);
*rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
*lame = 0;