mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Ignore cache blacklisting when trying to reply with expired data from
cache. (#394)
This commit is contained in:
parent
3b9c7e2826
commit
3124eb052d
2 changed files with 5 additions and 1 deletions
|
|
@ -4,6 +4,8 @@
|
|||
original instead of a decrementing TTL ('serve-original-ttl')
|
||||
- Merge PR #355 from noloader: Make ICANN Update CA and DS Trust Anchor
|
||||
static data.
|
||||
- Ignore cache blacklisting when trying to reply with expired data from
|
||||
cache (#394).
|
||||
|
||||
22 January 2022: Willem
|
||||
- Padding of queries and responses with DNS over TLS as specified in
|
||||
|
|
|
|||
|
|
@ -1929,7 +1929,9 @@ mesh_serve_expired_callback(void* arg)
|
|||
verbose(VERB_ALGO, "Serve expired: Trying to reply with expired data");
|
||||
comm_timer_delete(qstate->serve_expired_data->timer);
|
||||
qstate->serve_expired_data->timer = NULL;
|
||||
if(qstate->blacklist || qstate->no_cache_lookup || qstate->is_drop) {
|
||||
/* If is_drop or no_cache_lookup (modules that handle their own cache e.g.,
|
||||
* subnetmod) ignore stale data from the main cache. */
|
||||
if(qstate->no_cache_lookup || qstate->is_drop) {
|
||||
verbose(VERB_ALGO,
|
||||
"Serve expired: Not allowed to look into cache for stale");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue