summaryrefslogtreecommitdiff
path: root/src/or/reasons.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2010-07-24 18:19:20 +0200
committerMike Perry <mikeperry-git@fscked.org>2010-09-29 11:46:36 -0700
commitc5b5643965f57520842756e16d7ca7e8ea1cb2f8 (patch)
tree0ca90954e287f806af54ed3dd969b2bd306ea761 /src/or/reasons.c
parentcaba3bc57e2895a7c51a87e23fa783b9c48892a5 (diff)
downloadtor-c5b5643965f57520842756e16d7ca7e8ea1cb2f8.tar.gz
tor-c5b5643965f57520842756e16d7ca7e8ea1cb2f8.zip
Send control port events for timeouts.
We now differentiate between timeouts and cutoffs by the REASON string and the PURPOSE string.
Diffstat (limited to 'src/or/reasons.c')
-rw-r--r--src/or/reasons.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/reasons.c b/src/or/reasons.c
index ade9a3abfc..aa7972be5b 100644
--- a/src/or/reasons.c
+++ b/src/or/reasons.c
@@ -334,6 +334,8 @@ circuit_end_reason_to_control_string(int reason)
return "NOPATH";
case END_CIRC_REASON_NOSUCHSERVICE:
return "NOSUCHSERVICE";
+ case END_CIRC_REASON_MEASUREMENT_EXPIRED:
+ return "MEASUREMENT_EXPIRED";
default:
log_warn(LD_BUG, "Unrecognized reason code %d", (int)reason);
return NULL;