aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2012-10-24 17:34:18 -0700
committerMike Perry <mikeperry-git@fscked.org>2012-12-07 15:28:36 -0800
commit954f263ed5eb451a0742f8888681e10e64dd193a (patch)
tree17cf84ee506b600c6f597ecc5dbfad9c49580f17 /src/or/circuituse.c
parentc8056dcbbb9b468fe4070eff4b55b63d109801c5 (diff)
downloadtor-954f263ed5eb451a0742f8888681e10e64dd193a.tar.gz
tor-954f263ed5eb451a0742f8888681e10e64dd193a.zip
Add the ability to count circuit timeouts for guards.
This is purely for informational reasons for debugging.
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index e14f9d03ca..77822a36ad 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -663,6 +663,8 @@ circuit_expire_building(void)
circuit_mark_for_close(victim, END_CIRC_REASON_MEASUREMENT_EXPIRED);
else
circuit_mark_for_close(victim, END_CIRC_REASON_TIMEOUT);
+
+ pathbias_count_timeout(TO_ORIGIN_CIRCUIT(victim));
}
}