diff options
author | Roger Dingledine <arma@torproject.org> | 2008-06-09 18:32:43 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-06-09 18:32:43 +0000 |
commit | baa3cea213dae87197991e6d50ff53ef53e8e829 (patch) | |
tree | bab367b4318313b6814782fb7131fe86876fff62 /src/or/or.h | |
parent | dba6d8c55aa7af6e3aabe28b54fb3fc499c1d139 (diff) | |
download | tor-baa3cea213dae87197991e6d50ff53ef53e8e829.tar.gz tor-baa3cea213dae87197991e6d50ff53ef53e8e829.zip |
Start noticing and reporting bootstrapping failures too. It looks like
we never bothered learning why OR conns fail, so next step is to add some
infrastructure for that.
svn:r15091
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 8d68c83801..4ef2ed1cf4 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -905,6 +905,9 @@ typedef struct or_connection_t { tor_tls_t *tls; /**< TLS connection state. */ int tls_error; /**< Last tor_tls error code. */ + /* XXX either merge this with tls_error, or do all our activity right + * when we compute this value so we don't have to store it. */ + int socket_error; /**< If conn dies, remember why. */ /** When we last used this conn for any client traffic. If not * recent, we can rate limit it further. */ time_t client_used; @@ -3035,7 +3038,8 @@ typedef enum { BOOTSTRAP_STATUS_DONE=100 } bootstrap_status_t; -int control_event_bootstrap(bootstrap_status_t status, int percent); +void control_event_bootstrap(bootstrap_status_t status, int progress); +void control_event_bootstrap_problem(const char *warn, int reason); #ifdef CONTROL_PRIVATE /* Used only by control.c and test.c */ |