From 96c47c84781df94c8f8102094e8c028531921897 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 5 Oct 2005 02:25:59 +0000 Subject: [PATCH] Note the two places where clients will still try to fetch old-style (v1) directory info. These should be fixed, I think. svn:r5193 --- src/or/circuituse.c | 3 ++- src/or/main.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/or/circuituse.c b/src/or/circuituse.c index d88db4ee01..664f3ac8c4 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -870,7 +870,8 @@ circuit_get_open_circ_or_launch(connection_t *conn, if (!has_fetched_directory) { if (!connection_get_by_type(CONN_TYPE_DIR)) { log(LOG_NOTICE,"Application request when we're believed to be offline. Optimistically trying again."); - directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); + /* XXXX011 NM This should be a generic "retry all directory fetches". */ + directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); /*XXXX011NM*/ } /* the stream will be dealt with when has_fetched_directory becomes * 1, or when all directory attempts fail and directory_all_unreachable() diff --git a/src/or/main.c b/src/or/main.c index 1030ce204b..ad55d9c483 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -946,8 +946,8 @@ do_hup(void) log_fn(LOG_NOTICE, "Error reloading fingerprints. Continuing with old list."); } } - /* Fetch a new directory. Even authdirservers do this. */ - directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); + /* XXXX011 NM This should be a generic "retry all directory fetches". */ + directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); /*XXXX011NM*/ if (server_mode(options)) { const char *descriptor; /* Restart cpuworker and dnsworker processes, so they get up-to-date