--- /dev/null
+ o Minor bug fix (hidden service client):
+ - Seven very fast consecutive requests to the same .onion address
+ triggers 7 descriptor fetches. The first six each pick a directory
+ (there are 6 overall) and the seventh one wasn't able to pick one
+ which was triggering a close on all current directory connections. It
+ has been fixed by not closing them if we have pending directory fetch.
+ Fixes #15937; Bugfix on tor-0.2.7.1-alpha.
void
rend_client_refetch_v2_renddesc(rend_data_t *rend_query)
{
- int ret;
rend_cache_entry_t *e = NULL;
tor_assert(rend_query);
log_debug(LD_REND, "Fetching v2 rendezvous descriptor for service %s",
safe_str_client(rend_query->onion_address));
- ret = rend_client_fetch_v2_desc(rend_query, NULL);
- if (ret <= 0) {
- /* Close pending connections on error or if no hsdir can be found. */
- rend_client_desc_trynow(rend_query->onion_address);
- }
+ rend_client_fetch_v2_desc(rend_query, NULL);
+ /* We don't need to look the error code because either on failure or
+ * success, the necessary steps to continue the HS connection will be
+ * triggered once the descriptor arrives or if all fetch failed. */
return;
}