From 573ce5a4de7bbf25241c2f2cabd1e390b4565bd8 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 26 Oct 2010 12:15:00 +0000 Subject: [PATCH] - no timeout backoff if meanwhile a query succeeded. git-svn-id: file:///svn/unbound/trunk@2308 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + util/rtt.c | 4 ++++ 2 files changed, 5 insertions(+) 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 */ -- 2.47.2