diff options
author | Roger Dingledine <arma@torproject.org> | 2006-12-20 09:43:28 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-12-20 09:43:28 +0000 |
commit | 00257212c7a9e0e7c2504b7ccdd36727d4fc362f (patch) | |
tree | 5ad7fe0881096f36be30630d093b5179e2d8a94a /src | |
parent | 858d7295e728ca07573cac9bc3ad241a2b50dba7 (diff) | |
download | tor-00257212c7a9e0e7c2504b7ccdd36727d4fc362f.tar.gz tor-00257212c7a9e0e7c2504b7ccdd36727d4fc362f.zip |
Take out the '5 second' timeout from the connection retry
schedule. Now the first connect attempt will wait a full 10
seconds before switching to a new circuit. Perhaps this will help
a lot. Based on observations from Mike Perry.
svn:r9159
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 19c38e90f9..5b4b9a245e 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -321,15 +321,13 @@ connection_edge_finished_connecting(edge_connection_t *edge_conn) /** 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 + * time between each retry, we wait 10 seconds each for the first + * two tries, and 15 seconds for each retry after * that. Hopefully this will improve the expected user experience. */ static int compute_socks_timeout(edge_connection_t *conn) { - if (conn->num_socks_retries == 0) - return 5; - if (conn->num_socks_retries == 1) + if (conn->num_socks_retries < 2) /* try 0 and try 1 */ return 10; return 15; } |