diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2013-01-30 17:01:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-01 17:01:12 -0500 |
commit | 173ed05d2f7233371dfcb1ef32a4d95f5096c435 (patch) | |
tree | 946d9b12e5de64060f968083f852ab1d29718618 /src/or/circuitbuild.c | |
parent | ec90ed4f6d1155d28fde91097e76f574195583c6 (diff) | |
download | tor-173ed05d2f7233371dfcb1ef32a4d95f5096c435.tar.gz tor-173ed05d2f7233371dfcb1ef32a4d95f5096c435.zip |
Clarify state transition and related pathbias comments
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index e3a9d59c0e..9732a48c43 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1605,13 +1605,13 @@ pathbias_count_use_attempt(origin_circuit_t *circ) } /** - * Check the circuit's path stat is appropriate and it as successfully - * used. + * Check the circuit's path state is appropriate and mark it as + * successfully used. Used for path bias usage accounting. * * We don't actually increment the guard's counters until - * pathbias_check_close(). - * - * Used for path bias usage accounting. + * pathbias_check_close(), because the circuit can still transition + * back to PATH_STATE_USE_ATTEMPTED if a stream fails later (this + * is done so we can probe the circuit for liveness at close). */ void pathbias_mark_use_success(origin_circuit_t *circ) |