diff --git a/doc/Changelog b/doc/Changelog index 3b37ad762..2e4e6d002 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/util/rtt.c b/util/rtt.c index af21cc39f..df1d437e4 100644 --- a/util/rtt.c +++ b/util/rtt.c @@ -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 */