aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2013-01-30 17:01:10 -0400
committerNick Mathewson <nickm@torproject.org>2013-02-01 17:01:12 -0500
commit173ed05d2f7233371dfcb1ef32a4d95f5096c435 (patch)
tree946d9b12e5de64060f968083f852ab1d29718618 /src/or/circuitbuild.c
parentec90ed4f6d1155d28fde91097e76f574195583c6 (diff)
downloadtor-173ed05d2f7233371dfcb1ef32a4d95f5096c435.tar
tor-173ed05d2f7233371dfcb1ef32a4d95f5096c435.tar.gz
Clarify state transition and related pathbias comments
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index e3a9d59c0..9732a48c4 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)