aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_client.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-08-25 13:39:40 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-25 13:39:40 -0400
commite8c584176b92799126f9280a51f45e40db3cc119 (patch)
tree09fecd33e04bde31e344050452d5f2053384bc3d /src/or/hs_client.c
parent11443bb74c4c97014046b0a4ec404a4659881e5a (diff)
downloadtor-e8c584176b92799126f9280a51f45e40db3cc119.tar.gz
tor-e8c584176b92799126f9280a51f45e40db3cc119.zip
hs: Note the connection attempt if descriptor is unusable
This way, we can clear off the directory requests from our cache and thus allow the next client to query those HSDir again at the next SOCKS connection. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_client.c')
-rw-r--r--src/or/hs_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c
index 9c2aa34e95..99be058eb7 100644
--- a/src/or/hs_client.c
+++ b/src/or/hs_client.c
@@ -1103,7 +1103,9 @@ hs_client_desc_has_arrived(const hs_ident_dir_conn_t *ident)
"Closing streams.");
connection_mark_unattached_ap(entry_conn,
END_STREAM_REASON_RESOLVEFAILED);
- /* XXX: Note the connection attempt. */
+ /* We are unable to use the descriptor so remove the directory request
+ * from the cache so the next connection can try again. */
+ note_connection_attempt_succeeded(edge_conn->hs_ident);
goto end;
}