aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-07-18 04:42:32 +0000
committerRoger Dingledine <arma@torproject.org>2006-07-18 04:42:32 +0000
commit892f671f59133d1f6cd7aa0d83d7f2388632fd2c (patch)
treee3876749cdd43937e26823e9696f50bb3850f3df /src/or/or.h
parent1d02d24afa8cd6242d6a8fad87e9374c941829f9 (diff)
downloadtor-892f671f59133d1f6cd7aa0d83d7f2388632fd2c.tar
tor-892f671f59133d1f6cd7aa0d83d7f2388632fd2c.tar.gz
Define a schedule for how long to wait between retrying
application connections. Rather than waiting a fixed amount of time between each retry, we wait only 5 seconds for the first, 10 seconds for the second, and 15 seconds for each retry after that. Hopefully this will improve the expected experience. Addresses bug 297. svn:r6790
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index ff3a26e65..8e2d246b8 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -658,6 +658,10 @@ struct connection_t {
char *chosen_exit_name;
/** If 1, and we fail to reach the chosen exit, stop requiring it. */
unsigned int chosen_exit_optional:1;
+ /** Number of times we've reassigned this application connection to
+ * a new circuit. We keep track because the timeout is longer if we've
+ * already retried several times. */
+ int num_socks_retries;
/* Used only by OR connections: */
tor_tls_t *tls; /**< TLS connection state (OR only.) */