diff options
author | Roger Dingledine <arma@torproject.org> | 2008-02-21 09:00:54 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-02-21 09:00:54 +0000 |
commit | a60f7caa5490a38bd67d01ae65fb08c51250cd87 (patch) | |
tree | 2960a01b5d359b1a7ba823e3628d0cee536fdc09 /src/or/or.h | |
parent | 18a209ffe6580115124ba08e125ff77c9478dcfb (diff) | |
download | tor-a60f7caa5490a38bd67d01ae65fb08c51250cd87.tar.gz tor-a60f7caa5490a38bd67d01ae65fb08c51250cd87.zip |
start allowing clients to give up on trackhostexits targets if
five circuit attempts fail for a given stream. part of the fix
for bug 437. still an XXX020rc remaining.
svn:r13648
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 33ae67a4e8..1c5a16f598 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -811,6 +811,11 @@ typedef struct connection_t { /** For AP connections only. If 1, and we fail to reach the chosen exit, * stop requiring it. */ unsigned int chosen_exit_optional:1; + /** For AP connections only. If non-zero, this exit node was picked as + * a result of the TrackHostExit, and the value decrements every time + * we fail to complete a circuit to our chosen exit -- if it reaches + * zero, abandon the associated mapaddress. */ + unsigned int chosen_exit_retries:3; /** Set to 1 when we're inside connection_flushed_some to keep us from * calling connection_handle_write() recursively. */ unsigned int in_flushed_some:1; @@ -861,7 +866,7 @@ typedef struct connection_t { * we marked for close? */ char *address; /**< FQDN (or IP) of the guy on the other end. * strdup into this, because free_connection frees it. */ - /** Annother connection that's connected to this one in lieu of a socket. */ + /** Another connection that's connected to this one in lieu of a socket. */ struct connection_t *linked_conn; /* XXXX021 move this into a subtype. */ |