diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-17 01:33:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-17 01:33:04 +0000 |
commit | f5427463f5aacf803a64dd040469a901c8133dd8 (patch) | |
tree | aecf1d71b751893120e2bfc1f3254ad6e645e987 | |
parent | 8d62a36256972063dfe0454833a8a4d12d56e169 (diff) | |
download | tor-f5427463f5aacf803a64dd040469a901c8133dd8.tar tor-f5427463f5aacf803a64dd040469a901c8133dd8.tar.gz |
more debugging to hunt for a bug
svn:r1647
-rw-r--r-- | src/or/circuit.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index 27a754591..1b900b9c8 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -470,6 +470,20 @@ void circuit_expire_building(time_t now) { if(victim->timestamp_created + MIN_SECONDS_BEFORE_EXPIRING_CIRC > now) continue; /* it's young still, don't mess with it */ + /* some debug logs, to help track bugs */ + if(victim->purpose >= CIRCUIT_PURPOSE_C_INTRODUCING && + victim->purpose <= CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED) { + if(victim->timestamp_dirty) + log_fn(LOG_DEBUG,"Considering %sopen purp %d to %s (clean).", + victim->state == CIRCUIT_STATE_OPEN ? "" : "non", + victim->purpose, victim->build_state->chosen_exit); + else + log_fn(LOG_DEBUG,"Considering %sopen purp %d to %s. %d secs since dirty.", + victim->state == CIRCUIT_STATE_OPEN ? "" : "non", + victim->purpose, victim->build_state->chosen_exit, + (int)(now - victim->timestamp_dirty)); + } + /* if circ is !open, or if it's open but purpose is a non-finished * intro or rend, then mark it for close */ if(victim->state != CIRCUIT_STATE_OPEN || |