mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-16 17:18:51 -05:00
- Fix that when discard timeout drops packet, they are accounted as
less reply addresses in use in the mesh area.
This commit is contained in:
parent
e887a79a92
commit
0a15118aff
3 changed files with 12 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
12 November 2025: Wouter
|
||||
- Fix that when discard timeout drops packet, they are accounted as
|
||||
less reply addresses in use in the mesh area.
|
||||
|
||||
6 November 2025: Wouter
|
||||
- Fix add comment to worker_handle_request function that explain it.
|
||||
- Fix configure test for noreturn attribute so it compiles without
|
||||
|
|
|
|||
|
|
@ -1765,6 +1765,8 @@ void mesh_query_done(struct mesh_state* mstate)
|
|||
http2_stream_remove_mesh_state(r->h2_stream);
|
||||
comm_point_drop_reply(&r->query_reply);
|
||||
mstate->reply_list = reply_list;
|
||||
log_assert(mstate->s.env->mesh->num_reply_addrs > 0);
|
||||
mstate->s.env->mesh->num_reply_addrs--;
|
||||
mstate->s.env->mesh->num_queries_discard_timeout++;
|
||||
continue;
|
||||
}
|
||||
|
|
@ -1801,6 +1803,8 @@ void mesh_query_done(struct mesh_state* mstate)
|
|||
}
|
||||
comm_point_drop_reply(&r->query_reply);
|
||||
mstate->reply_list = reply_list;
|
||||
log_assert(mstate->s.env->mesh->num_reply_addrs > 0);
|
||||
mstate->s.env->mesh->num_reply_addrs--;
|
||||
} else {
|
||||
struct sldns_buffer* r_buffer = r->query_reply.c->buffer;
|
||||
if(r->query_reply.c->tcp_req_info) {
|
||||
|
|
|
|||
6
testdata/stat_values.tdir/stat_values.test
vendored
6
testdata/stat_values.tdir/stat_values.test
vendored
|
|
@ -468,8 +468,10 @@ bring_up_alternate_configuration ub_discard_wait_limit.conf
|
|||
teststep "Check discard-timeout and wait-limit"
|
||||
echo "> dig www.unresponsive"
|
||||
dig @127.0.0.1 -p $UNBOUND_PORT +retry=2 +timeout=1 www.unresponsive. | tee outfile
|
||||
echo "> check answer"
|
||||
if grep "no servers could be reached" outfile; then
|
||||
# Wait for nonresponse servfail, that causes discards.
|
||||
sleep 2
|
||||
if grep "no servers could be reached" outfile ||
|
||||
grep "Too many queries queued up and waiting" outfile; then
|
||||
echo "OK"
|
||||
else
|
||||
end 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue