diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-07 22:20:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-07 22:20:13 -0400 |
commit | 84df7d73c9f8892220184e301627d5bddb9c3f79 (patch) | |
tree | 402e0b98bf991b6d2977fe51d227890c72878bac /src/or | |
parent | bc0882c868c0cb61ade0f8b500c4392c889d6d0e (diff) | |
parent | 74195db6b67d2e98019104d49e44717fd54d5ec2 (diff) | |
download | tor-84df7d73c9f8892220184e301627d5bddb9c3f79.tar.gz tor-84df7d73c9f8892220184e301627d5bddb9c3f79.zip |
Merge branch 'bug9665_redux'
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/connection_or.c | 6 | ||||
-rw-r--r-- | src/or/or.h | 3 | ||||
-rw-r--r-- | src/or/reasons.c | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 04ad2cc008..6572a918e6 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -1195,6 +1195,12 @@ connection_or_connect(const tor_addr_t *_addr, uint16_t port, "your pluggable transport proxy stopped running.", fmt_addrport(&TO_CONN(conn)->addr, TO_CONN(conn)->port), transport_name, transport_name); + + control_event_bootstrap_problem( + "Can't connect to bridge", + END_OR_CONN_REASON_PT_MISSING, + conn); + } else { log_warn(LD_GENERAL, "Tried to connect to '%s' through a proxy, but " "the proxy address could not be found.", diff --git a/src/or/or.h b/src/or/or.h index 38ab1767e0..1b35c1f99b 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -604,7 +604,8 @@ typedef enum { #define END_OR_CONN_REASON_NO_ROUTE 6 /* no route to host/net */ #define END_OR_CONN_REASON_IO_ERROR 7 /* read/write error */ #define END_OR_CONN_REASON_RESOURCE_LIMIT 8 /* sockets, buffers, etc */ -#define END_OR_CONN_REASON_MISC 9 +#define END_OR_CONN_REASON_PT_MISSING 9 /* PT failed or not available */ +#define END_OR_CONN_REASON_MISC 10 /* Reasons why we (or a remote OR) might close a stream. See tor-spec.txt for * documentation of these. The values must match. */ diff --git a/src/or/reasons.c b/src/or/reasons.c index 0674474e72..750e89bbe7 100644 --- a/src/or/reasons.c +++ b/src/or/reasons.c @@ -231,6 +231,8 @@ orconn_end_reason_to_control_string(int r) return "RESOURCELIMIT"; case END_OR_CONN_REASON_MISC: return "MISC"; + case END_OR_CONN_REASON_PT_MISSING: + return "PT_MISSING"; case 0: return ""; default: |