summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-09-09 06:25:39 +0000
committerRoger Dingledine <arma@torproject.org>2008-09-09 06:25:39 +0000
commitd37fae2f4edb03095f943577f78b518f75f6ca71 (patch)
tree65affa5651b1e0b1de42fe96ef4245974fbfbcc3 /src/or/or.h
parentaacda9cd8eae992c9359279782234dd626415948 (diff)
downloadtor-d37fae2f4edb03095f943577f78b518f75f6ca71.tar.gz
tor-d37fae2f4edb03095f943577f78b518f75f6ca71.zip
Catch and report a few more bootstrapping failure cases when Tor
fails to establish a TCP connection. Cleanup on 0.2.1.x. svn:r16803
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 9e19eaf7cc..34fce56e46 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -941,9 +941,6 @@ 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;
@@ -2991,6 +2988,8 @@ int connection_or_flushed_some(or_connection_t *conn);
int connection_or_finished_flushing(or_connection_t *conn);
int connection_or_finished_connecting(or_connection_t *conn);
+void connection_or_connect_failed(or_connection_t *conn,
+ int reason, const char *msg);
or_connection_t *connection_or_connect(const tor_addr_t *addr, uint16_t port,
const char *id_digest);