summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-01-24 04:45:30 +0000
committerRoger Dingledine <arma@torproject.org>2008-01-24 04:45:30 +0000
commitc973eb5e2326fb64cdddb1b0badc355c459f8fee (patch)
treea390bd0a16e70ba1dbde058e4e99fb058ddb6a9c /src/or/connection.c
parent6b1374556e877478f8bf0d394b379a8e29513967 (diff)
downloadtor-c973eb5e2326fb64cdddb1b0badc355c459f8fee.tar.gz
tor-c973eb5e2326fb64cdddb1b0badc355c459f8fee.zip
start to clean up r13250: retry v2 renddesc fetches when we
fail to reach the dirserver too. svn:r13251
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 5c0ee12fd1..e64a623ff1 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -468,10 +468,12 @@ connection_about_to_close_connection(connection_t *conn)
/* It's a directory connection and connecting or fetching
* failed: forget about this router, and maybe try again. */
connection_dir_request_failed(dir_conn);
- // XXX if it's rend desc we may want to retry -RD
}
+ /* if we were trying to fetch a rend desc, retry as needed */
if (conn->purpose == DIR_PURPOSE_FETCH_RENDDESC)
- rend_client_desc_here(dir_conn->rend_query); /* give it a try */
+ rend_client_desc_here(dir_conn->rend_query);
+ if (conn->purpose == DIR_PURPOSE_FETCH_RENDDESC_V2)
+ rend_client_refetch_v2_renddesc(dir_conn->rend_query);
break;
case CONN_TYPE_OR:
or_conn = TO_OR_CONN(conn);