summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-08-24 02:31:02 +0000
committerRoger Dingledine <arma@torproject.org>2005-08-24 02:31:02 +0000
commita120cc20c171164230d592337425e9016747f182 (patch)
tree5627a4e24b261920dc0cec80b61765748fc7d32f /src/or/connection_or.c
parent5d590861c49f354d47d27b2e4edc971e0ecac914 (diff)
downloadtor-a120cc20c171164230d592337425e9016747f182.tar.gz
tor-a120cc20c171164230d592337425e9016747f182.zip
Dirservers now do their own external reachability testing of each
Tor server, and only list them as running if they've been found to be reachable. Dirservers also log trouble servers, but only start complaining loudly after they've been up for an hour, to reduce false positives. We still need to do something about the fact that it is quite loud when there are many trouble servers. svn:r4829
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index f68aed0de4..58ccd4e274 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -334,15 +334,6 @@ connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest)
return NULL;
}
- /* this function should never be called if we're already connected to
- * id_digest, but check first to be sure */
- conn = connection_get_by_identity_digest(id_digest, CONN_TYPE_OR);
- if (conn) {
- tor_assert(conn->nickname);
- log_fn(LOG_WARN,"Asked me to connect to router '%s', but there's already a connection.", conn->nickname);
- return conn;
- }
-
conn = connection_new(CONN_TYPE_OR);
/* set up conn so it's got all the data we need to remember */