aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-01-06 05:42:31 +0000
committerNick Mathewson <nickm@torproject.org>2007-01-06 05:42:31 +0000
commitc8466c5919c68b43e2ec714b5bb57c70be330e54 (patch)
tree315deac802bef93b919edbd555c842102f71c496 /src/or/circuituse.c
parent6b126ea040150661cd1419f0511e0c951d9b458e (diff)
downloadtor-c8466c5919c68b43e2ec714b5bb57c70be330e54.tar.gz
tor-c8466c5919c68b43e2ec714b5bb57c70be330e54.zip
r11824@Kushana: nickm | 2007-01-03 17:15:28 -0500
control-spec: upcase arguments in status events; note unimplemented events individually r11825@Kushana: nickm | 2007-01-03 17:41:43 -0500 Implement EXTERNAL IP server status event. r11826@Kushana: nickm | 2007-01-03 17:47:10 -0500 Implement BAD_SERVER_DESCRIPTOR server status event. r11827@Kushana: nickm | 2007-01-03 18:01:56 -0500 Implement SOCKS_UNKNOWN_PROTOCOL and DANGEROUS_SOCKS client events. r11828@Kushana: nickm | 2007-01-03 18:23:22 -0500 Implement BUG controller events. Also, flush ERR-level status events just like ERR-level log messages. r11829@Kushana: nickm | 2007-01-03 23:37:27 -0500 Yet more status events: CLOCK_SKEW, GOOD/ACCEPTED_SERVER_DESCRIPTOR, {CHECKING_}REACHABILITY_{SUCCEEDED|FAILED} r11833@Kushana: nickm | 2007-01-05 16:56:37 -0500 Note some unimplementedness in control-spec.txt svn:r9279
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 8168713ec6..7c2178fd71 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -622,12 +622,17 @@ circuit_testing_opened(origin_circuit_t *circ)
static void
circuit_testing_failed(origin_circuit_t *circ, int at_last_hop)
{
+ routerinfo_t *me = router_get_my_routerinfo();
if (server_mode(get_options()) && check_whether_orport_reachable())
return;
+ if (!me)
+ return;
log_info(LD_GENERAL,
"Our testing circuit (to see if your ORPort is reachable) "
"has failed. I'll try again later.");
+ control_event_server_status(LOG_WARN, "REACHABILITY_FAILED ORADDRESS=%s:%d",
+ me->address, me->or_port);
/* These aren't used yet. */
(void)circ;