[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor] 01/04: hs: Change the error for a collapsing client circuit



This is an automated email from the git hooks/post-receive script.

dgoulet pushed a commit to branch main
in repository tor.

commit 8463111c9bafa16a97acd42ff466ec129c5c2851
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
AuthorDate: Wed Oct 19 14:41:48 2022 -0400

    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@xxxxxxxxxxxxxx>
---
 changes/ticket40692        | 3 +++
 src/feature/hs/hs_client.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/changes/ticket40692 b/changes/ticket40692
new file mode 100644
index 0000000000..8405486115
--- /dev/null
+++ b/changes/ticket40692
@@ -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.
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index bc304171ed..7cee3480d5 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -1964,7 +1964,7 @@ void
 hs_client_circuit_cleanup_on_free(const circuit_t *circ)
 {
   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;
 
   tor_assert(circ);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits