diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-05-03 00:09:18 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-04 13:46:30 -0400 |
commit | f79688ddef0e4d4abd5e92afbb11c5ee9864056d (patch) | |
tree | 35828d6c8dcf4f45dc4ae786702138e7adb86a10 /src/or/connection.c | |
parent | 0d68da2381780e2f8010b52a9e062947554699d5 (diff) | |
download | tor-f79688ddef0e4d4abd5e92afbb11c5ee9864056d.tar.gz tor-f79688ddef0e4d4abd5e92afbb11c5ee9864056d.zip |
Clients do not request version 0 hidserv descs anymore.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 3a01c28652..812d021531 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -544,13 +544,6 @@ connection_about_to_close_connection(connection_t *conn) * failed: forget about this router, and maybe try again. */ connection_dir_request_failed(dir_conn); } - if (conn->purpose == DIR_PURPOSE_FETCH_RENDDESC && dir_conn->rend_data) { - /* Give it a try. However, there is no re-fetching for v0 rend - * descriptors; if the response is empty or the descriptor is - * unusable, close pending connections (unless a v2 request is - * still in progress). */ - rend_client_desc_trynow(dir_conn->rend_data->onion_address, 0); - } /* If we were trying to fetch a v2 rend desc and did not succeed, * retry as needed. (If a fetch is successful, the connection state * is changed to DIR_PURPOSE_HAS_FETCHED_RENDDESC to mark that @@ -2576,8 +2569,8 @@ connection_get_by_type_state(int type, int state) /** Return a connection of type <b>type</b> that has rendquery equal * to <b>rendquery</b>, and that is not marked for close. If state - * is non-zero, conn must be of that state too. If rendversion is - * nonnegative, conn must be fetching that rendversion, too. + * is non-zero, conn must be of that state too. (rendversion is + * ignored.) */ connection_t * connection_get_by_type_state_rendquery(int type, int state, @@ -2585,6 +2578,7 @@ connection_get_by_type_state_rendquery(int type, int state, int rendversion) { smartlist_t *conns = get_connection_array(); + (void) rendversion; tor_assert(type == CONN_TYPE_DIR || type == CONN_TYPE_AP || type == CONN_TYPE_EXIT); @@ -2597,8 +2591,6 @@ connection_get_by_type_state_rendquery(int type, int state, (!state || state == conn->state)) { if (type == CONN_TYPE_DIR && TO_DIR_CONN(conn)->rend_data && - (rendversion < 0 || - rendversion == TO_DIR_CONN(conn)->rend_data->rend_desc_version) && !rend_cmp_service_ids(rendquery, TO_DIR_CONN(conn)->rend_data->onion_address)) return conn; |