diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-26 01:43:39 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-26 01:43:39 +0000 |
commit | 13283834829877d6cf81dd7d63224a650c89ad8d (patch) | |
tree | 96b2dca90b293c702dcf67ecc46a099cb765fcda /src/or/circuitbuild.c | |
parent | e203d47192135079c34a6cf29307de5220126ee6 (diff) | |
download | tor-13283834829877d6cf81dd7d63224a650c89ad8d.tar tor-13283834829877d6cf81dd7d63224a650c89ad8d.tar.gz |
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
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |