use !cbt_disabled in place of LearnCBT to avoid needless circs
commit4f3dbb3c0a5c1a6d7d8571add3722e6c567e3d81
authorNick Mathewson <nickm@torproject.org>
Wed, 4 Sep 2013 19:51:13 +0000 (4 15:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 4 Sep 2013 19:54:05 +0000 (4 15:54 -0400)
tree27223037f82a6610c2119ba47f85768d001758d4
parent8611195a005ed1624bdea0632404a8c00bb19586
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.
changes/bug9671_023 [new file with mode: 0644]
src/or/circuitbuild.c
src/or/circuitbuild.h
src/or/circuituse.c