hs: Change the error for a collapsing client circuit

Change it to an "unreachable" error so the intro point can be retried
and not flagged as a failure and never retried again.

Closes #40692

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2022-10-19 14:41:48 -04:00
parent a317326aae
commit 59008c6f51
2 changed files with 4 additions and 1 deletions

3
changes/ticket40692 Normal file
View File

@ -0,0 +1,3 @@
o Minor bugfixes (onion service client):
- A collapsing onion service circuit should be seen as an "unreachable"
error so it can be retried. Fixes bug 40692; bugfix on 0.3.5.1-alpha.

View File

@ -1964,7 +1964,7 @@ void
hs_client_circuit_cleanup_on_free(const circuit_t *circ) hs_client_circuit_cleanup_on_free(const circuit_t *circ)
{ {
bool has_timed_out; bool has_timed_out;
rend_intro_point_failure_t failure = INTRO_POINT_FAILURE_GENERIC; rend_intro_point_failure_t failure = INTRO_POINT_FAILURE_UNREACHABLE;
const origin_circuit_t *orig_circ = NULL; const origin_circuit_t *orig_circ = NULL;
tor_assert(circ); tor_assert(circ);