aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-19 06:57:44 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-19 06:57:44 +0000
commit7aae63994f7d8b42ff7b9b4809eb2f1213372148 (patch)
treec8794fc5446a4012ff83ee805d3e5627e61cc374 /src/or/router.c
parent700c370a3b9f30495983301883d678ef90bb1621 (diff)
downloadtor-7aae63994f7d8b42ff7b9b4809eb2f1213372148.tar.gz
tor-7aae63994f7d8b42ff7b9b4809eb2f1213372148.zip
Recover better from TCP connections to Tor servers that are broken but
don't tell you (it happens!); and rotate TLS connections once a week. 1) If an OR conn becomes more than a week old, make it obsolete. 2) If it's obsolete and empty, kill it. 3) When an OR makes a second connection to you, allow it. 4) If we want to send a new create cell, but the best conn we've got is obsolete, and the router is 0.1.1.9-alpha-cvs or later, ask for a new conn instead. 5) When we time out on circuit building on the first hop, make that connection obsolete. svn:r5429
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index e38cd0a47a..ae1c602177 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -623,8 +623,7 @@ router_retry_connections(int force)
if (!clique_mode(options) && !router_is_clique_mode(router))
continue;
if (force ||
- !connection_get_by_identity_digest(router->cache_info.identity_digest,
- CONN_TYPE_OR)) {
+ !connection_get_by_identity_digest(router->cache_info.identity_digest)) {
debug(LD_OR,"%sconnecting to %s at %s:%u.",
clique_mode(options) ? "(forced) " : "",
router->nickname, router->address, router->or_port);