- 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:
Wouter Wijngaards 2010-10-26 12:15:00 +00:00
parent 4dca799fbf
commit 573ce5a4de
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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 */