aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-04 16:11:20 -0400
committerNick Mathewson <nickm@torproject.org>2013-09-04 16:11:20 -0400
commitd5e9573ed24df7c0eb795617de9db2a0c3e40b4d (patch)
tree47169bf4f1f5d6732b9643aa712933fd28309301
parent386e9fb29775f972cfaac4653202811d4cfb4ff4 (diff)
parenta60d21a85deacad98fa04d20fb4e83b57ad191d7 (diff)
downloadtor-d5e9573ed24df7c0eb795617de9db2a0c3e40b4d.tar.gz
tor-d5e9573ed24df7c0eb795617de9db2a0c3e40b4d.zip
Merge remote-tracking branch 'origin/maint-0.2.4'
Conflicts: src/or/circuituse.c
-rw-r--r--changes/bug9671_0235
-rw-r--r--src/or/circuituse.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/changes/bug9671_023 b/changes/bug9671_023
new file mode 100644
index 0000000000..035ca5cdea
--- /dev/null
+++ b/changes/bug9671_023
@@ -0,0 +1,5 @@
+ o Major bugfixes:
+ - If the circuit build timeout logic is disabled (via the consensus,
+ or because we are an authority), then don't build testing circuits.
+ Fixes bug 9657; bugfix on 0.2.2.14-alpha.
+
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index e3c0d0cbd8..00dbc7e239 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -943,7 +943,7 @@ circuit_predict_and_launch_new(void)
* want, don't do another -- we want to leave a few slots open so
* we can still build circuits preemptively as needed. */
if (num < MAX_UNUSED_OPEN_CIRCUITS-2 &&
- get_options()->LearnCircuitBuildTimeout &&
+ ! circuit_build_times_disabled() &&
circuit_build_times_needs_circuits_now(get_circuit_build_times())) {
flags = CIRCLAUNCH_NEED_CAPACITY;
log_info(LD_CIRC,
@@ -1079,7 +1079,7 @@ circuit_expire_old_circuits_clientside(void)
tor_gettimeofday(&now);
cutoff = now;
- if (get_options()->LearnCircuitBuildTimeout &&
+ if (! circuit_build_times_disabled() &&
circuit_build_times_needs_circuits(get_circuit_build_times())) {
/* Circuits should be shorter lived if we need more of them
* for learning a good build timeout */