From 13283834829877d6cf81dd7d63224a650c89ad8d Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 26 Mar 2005 01:43:39 +0000 Subject: make it clearer to the human that his server is testing its reachability. tell him when it succeeds, or when 20 minutes pass and it hasn't succeeded yet. svn:r3882 --- src/or/circuitbuild.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/or/circuitbuild.c') diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 37073f8b8..f050a54f8 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -463,9 +463,14 @@ int circuit_send_next_onion_skin(circuit_t *circ) { log_fn(LOG_INFO,"circuit built!"); circuit_reset_failure_count(0); if (!has_completed_circuit) { + or_options_t *options = get_options(); has_completed_circuit=1; log_fn(LOG_NOTICE,"Tor has successfully opened a circuit. Looks like it's working."); /* XXX009 Log a count of known routers here */ + if (server_mode(options) && !check_whether_ports_reachable()) + log_fn(LOG_NOTICE,"Now checking whether ORPort %s %s reachable...", + options->DirPort ? "and DirPort" : "", + options->DirPort ? "are" : "is"); } circuit_rep_hist_note_result(circ); circuit_has_opened(circ); /* do other actions as necessary */ -- cgit v1.2.3