mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
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>
This commit is contained in:
parent
11443bb74c
commit
e8c584176b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user