]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make begindir_cutoff the same as general_cutoff
authorRoger Dingledine <arma@torproject.org>
Sat, 1 Sep 2012 05:25:17 +0000 (01:25 -0400)
committerRoger Dingledine <arma@torproject.org>
Sat, 1 Sep 2012 05:25:17 +0000 (01:25 -0400)
Allow one-hop directory fetching circuits the full "circuit build timeout"
period, rather than just half of it, before failing them and marking
the relay down. This fix should help reduce cases where clients declare
relays (or worse, bridges) unreachable because the TLS handshake takes
a few seconds to complete.

Fixes bug 6743 (one piece of bug 3443); bugfix on 0.2.2.2-alpha, where
we changed the timeout from a static 30 seconds.

changes/bug6743 [new file with mode: 0644]
src/or/circuituse.c

diff --git a/changes/bug6743 b/changes/bug6743
new file mode 100644 (file)
index 0000000..6ec78f8
--- /dev/null
@@ -0,0 +1,9 @@
+  o Minor bugfixes:
+    - Allow one-hop directory fetching circuits the full "circuit build
+      timeout" period, rather than just half of it, before failing them
+      and marking the relay down. This fix should help reduce cases where
+      clients declare relays (or worse, bridges) unreachable because
+      the TLS handshake takes a few seconds to complete. Fixes bug 6743;
+      bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
+      30 seconds.
+
index c34b698fa1fb941a1e2881c692e17490f0d2090f..20f124eb4e6e6c4754bd0fce2a6095ab209222cc 100644 (file)
@@ -372,7 +372,7 @@ circuit_expire_building(void)
   } while (0)
 
   SET_CUTOFF(general_cutoff, circ_times.timeout_ms);
-  SET_CUTOFF(begindir_cutoff, circ_times.timeout_ms / 2.0);
+  SET_CUTOFF(begindir_cutoff, circ_times.timeout_ms);
   SET_CUTOFF(fourhop_cutoff, circ_times.timeout_ms * (4/3.0));
   SET_CUTOFF(cannibalize_cutoff, circ_times.timeout_ms / 2.0);
   SET_CUTOFF(close_cutoff, circ_times.close_ms);