]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Faster timeouts, based on extracts of our logs.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 17 Oct 2007 17:40:35 +0000 (17:40 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 17 Oct 2007 17:40:35 +0000 (17:40 +0000)
git-svn-id: file:///svn/unbound/trunk@689 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iterator.h
util/rtt.c
util/rtt.h

index ca537dbbf62c70ba4127cb22a0e3d23cbf9c00a1..7fbfded6b1221041c664ffd416a46c034f6476fb 100644 (file)
@@ -15,6 +15,8 @@
          where no scripted answer was available.
        - mark insecure RRs as insecure.
        - fixup removal of nonsecure items from the additional.
+       - reduced timeout values to more realistic, 376 msec (262 msec has
+         90% of roundtrip times, 512 msec has 99% of roundtrip times.)
 
 16 October 2007: Wouter
        - no malloc in log_hex.
index b77870c48d978650454ecfc5a17f92701f9ea587..817c00654f390cfd56ce7f132cdf034c339169da 100644 (file)
@@ -58,7 +58,7 @@ struct iter_prep_list;
 /** how nice is a server without further information, in msec 
  * Equals rtt initial timeout value.
  */
-#define UNKNOWN_SERVER_NICENESS 3000
+#define UNKNOWN_SERVER_NICENESS 376
 /** maximum timeout before a host is deemed unsuitable, in msec. 
  * After host_ttl this will be timed out and the host will be tried again. 
  * Equals RTT_MAX_TIMEOUT
index bc31e4c91fa8f23bdfa83aa67e2a5e118fddd601..eefdf7062235e0f4f8f23613f247474ad06e99da 100644 (file)
@@ -60,9 +60,10 @@ void
 rtt_init(struct rtt_info* rtt)
 {
        rtt->srtt = 0;
-       rtt->rttvar = 750;
+       rtt->rttvar = 94;
        rtt->rto = calc_rto(rtt);
-       /* first RTO is 0 + 4*0.75 = 3 seconds */
+       /* default value from the book is 0 + 4*0.75 = 3 seconds */
+       /* first RTO is 0 + 4*0.094 = 0.376 seconds */
 }
 
 int 
index 053f5d92ac9740eb39453e8aaec15340ecb6a715..260945f4f44943a0b17dbe7a8546e218ef7c8d81 100644 (file)
@@ -56,7 +56,7 @@ struct rtt_info {
 };
 
 /** min retransmit timeout value, in milliseconds */
-#define RTT_MIN_TIMEOUT        2000
+#define RTT_MIN_TIMEOUT        50
 /** max retransmit timeout value, in milliseconds */
 #define RTT_MAX_TIMEOUT 120000