mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 14:47:09 +00:00
- no timeout backoff if meanwhile a query succeeded.
git-svn-id: file:///svn/unbound/trunk@2308 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
4dca799fbf
commit
573ce5a4de
@ -1,5 +1,6 @@
|
||||
26 October 2010: Wouter
|
||||
- dump_infra and flush_infra commands for unbound-control.
|
||||
- no timeout backoff if meanwhile a query succeeded.
|
||||
|
||||
25 October 2010: Wouter
|
||||
- Configure errors if ldns is not found.
|
||||
|
@ -99,6 +99,10 @@ rtt_lost(struct rtt_info* rtt, int orig)
|
||||
{
|
||||
/* exponential backoff */
|
||||
|
||||
/* if a query succeeded and put down the rto meanwhile, ignore this */
|
||||
if(rtt->rto < orig)
|
||||
return;
|
||||
|
||||
/* the original rto is doubled, not the current one to make sure
|
||||
* that the values in the cache are not increased by lots of
|
||||
* queries simultaneously as they time out at the same time */
|
||||
|
Loading…
Reference in New Issue
Block a user