summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-09-17 06:18:06 +0000
committerRoger Dingledine <arma@torproject.org>2006-09-17 06:18:06 +0000
commitb049b1b0149000ce45fc2ccfe67d1df7271581cf (patch)
treee05dc769f590ba6abfe37c8e31a224671668628e /src
parent3b0355d3b25235a3535ae9050c9aeb9cbdcd70e8 (diff)
downloadtor-b049b1b0149000ce45fc2ccfe67d1df7271581cf.tar.gz
tor-b049b1b0149000ce45fc2ccfe67d1df7271581cf.zip
build testing circuits more rapidly. this has a failure mode
where if circuits fail quickly, we'll fail a lot of them very quickly and not retry for a while. so be it. svn:r8407
Diffstat (limited to 'src')
-rw-r--r--src/or/circuituse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 5ac48047df..2010aa4188 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -653,12 +653,12 @@ circuit_testing_opened(origin_circuit_t *circ)
static void
circuit_testing_failed(origin_circuit_t *circ, int at_last_hop)
{
- if (server_mode(get_options()) && check_whether_orport_reachable())
- return;
-
log_info(LD_GENERAL,
"Our testing circuit (to see if your ORPort is reachable) "
- "has failed. I'll try again later.");
+ "has failed. Considering launching another one.");
+
+ if (!circuit_enough_testing_circs())
+ consider_testing_reachability(1, 0);
/* These aren't used yet. */
(void)circ;