mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Merge PR 714: Avoid treat normal hosts as unresponsive servers.
And fixup the lock code.
This commit is contained in:
parent
6e50c46102
commit
33bd49af81
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
15 July 2022: Wouter
|
||||
- Merge PR 714: Avoid treat normal hosts as unresponsive servers.
|
||||
And fixup the lock code.
|
||||
|
||||
12 July 2022: George
|
||||
- For windows crosscompile, fix setting the IPV6_MTU socket option
|
||||
equivalent (IPV6_USER_MTU); allows cross compiling with latest
|
||||
|
|
|
|||
3
services/cache/infra.c
vendored
3
services/cache/infra.c
vendored
|
|
@ -723,18 +723,19 @@ infra_get_lame_rtt(struct infra_cache* infra,
|
|||
}
|
||||
/* expired entry */
|
||||
if(timenow > host->ttl) {
|
||||
lock_rw_unlock(&e->lock);
|
||||
|
||||
/* 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) {
|
||||
lock_rw_unlock(&e->lock);
|
||||
*rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
|
||||
*lame = 0;
|
||||
*dnsseclame = 0;
|
||||
*reclame = 0;
|
||||
return 1;
|
||||
}
|
||||
lock_rw_unlock(&e->lock);
|
||||
return 0;
|
||||
}
|
||||
/* check lameness first */
|
||||
|
|
|
|||
Loading…
Reference in a new issue