From: Wouter Wijngaards Date: Tue, 26 Oct 2010 12:15:00 +0000 (+0000) Subject: - no timeout backoff if meanwhile a query succeeded. X-Git-Tag: release-1.4.7rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=573ce5a4de7bbf25241c2f2cabd1e390b4565bd8;p=thirdparty%2Funbound.git - no timeout backoff if meanwhile a query succeeded. git-svn-id: file:///svn/unbound/trunk@2308 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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 */