diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-20 10:31:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-20 10:31:56 -0400 |
commit | 5b0b51ca3ff55d6e82081adf4cb1dbfa24ac4872 (patch) | |
tree | 23f6d7ccd5e79a3e25726c2df0912dee48dc5528 /src/or/config.c | |
parent | f1caa2f2146ac750962e6506fe672b03749c50f9 (diff) | |
parent | b9a8f8c17ce11dd867e0afec7cbb65c55a3d7e8c (diff) | |
download | tor-5b0b51ca3ff55d6e82081adf4cb1dbfa24ac4872.tar.gz tor-5b0b51ca3ff55d6e82081adf4cb1dbfa24ac4872.zip |
Merge remote-tracking branch 'public/bug6304_v3' into maint-0.2.4
Conflicts:
src/or/circuitbuild.c
src/or/config.c
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c index 68c0ccacdc..2b8eab7d63 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2723,15 +2723,19 @@ options_validate(or_options_t *old_options, or_options_t *options, "http://freehaven.net/anonbib/#hs-attack06 for details."); } - if (!(options->LearnCircuitBuildTimeout) && - options->CircuitBuildTimeout < RECOMMENDED_MIN_CIRCUIT_BUILD_TIMEOUT) { + if (!options->LearnCircuitBuildTimeout && options->CircuitBuildTimeout && + options->CircuitBuildTimeout < RECOMMENDED_MIN_CIRCUIT_BUILD_TIMEOUT) { log_warn(LD_CONFIG, - "CircuitBuildTimeout is shorter (%d seconds) than recommended " - "(%d seconds), and LearnCircuitBuildTimeout is disabled. " + "CircuitBuildTimeout is shorter (%d seconds) than the recommended " + "minimum (%d seconds), and LearnCircuitBuildTimeout is disabled. " "If tor isn't working, raise this value or enable " "LearnCircuitBuildTimeout.", options->CircuitBuildTimeout, RECOMMENDED_MIN_CIRCUIT_BUILD_TIMEOUT ); + } else if (!options->LearnCircuitBuildTimeout && + !options->CircuitBuildTimeout) { + log_notice(LD_CONFIG, "You disabled LearnCircuitBuildTimeout, but didn't " + "a CircuitBuildTimeout. I'll pick a plausible default."); } if (options->PathBiasNoticeRate > 1.0) { |