diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-04 15:51:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-09-04 15:54:05 -0400 |
commit | 4f3dbb3c0a5c1a6d7d8571add3722e6c567e3d81 (patch) | |
tree | 27223037f82a6610c2119ba47f85768d001758d4 /src/or/circuitbuild.h | |
parent | 8611195a005ed1624bdea0632404a8c00bb19586 (diff) | |
download | tor-4f3dbb3c0a5c1a6d7d8571add3722e6c567e3d81.tar.gz tor-4f3dbb3c0a5c1a6d7d8571add3722e6c567e3d81.zip |
use !cbt_disabled in place of LearnCBT to avoid needless circs
This would make us do testing circuits "even when cbt is disabled by
consensus, or when we're a directory authority, or when we've failed
to write cbt history to our state file lately." (Roger's words.)
This is a fix for 9671 and an improvement in our fix for 5049.
The original misbehavior was in 0.2.2.14-alpha; the incomplete
fix was in 0.2.3.17-beta.
Diffstat (limited to 'src/or/circuitbuild.h')
-rw-r--r-- | src/or/circuitbuild.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h index 984d04a99e..fc6ca65fca 100644 --- a/src/or/circuitbuild.h +++ b/src/or/circuitbuild.h @@ -32,6 +32,7 @@ char *circuit_list_path_for_controller(origin_circuit_t *circ); void circuit_log_path(int severity, unsigned int domain, origin_circuit_t *circ); void circuit_rep_hist_note_result(origin_circuit_t *circ); +int circuit_build_times_disabled(void); origin_circuit_t *origin_circuit_init(uint8_t purpose, int flags); origin_circuit_t *circuit_establish_circuit(uint8_t purpose, extend_info_t *exit, |