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

gitolite role git at cupani.torproject.org
Wed Oct 26 18:59:32 UTC 2022


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

dgoulet pushed a commit to branch main
in repository tor.

commit 59008c6f515cb63b12061a24a9c4ddf0dc018e7f
Author: David Goulet <dgoulet at torproject.org>
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 at torproject.org>
---
 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 d08b518d94..a50598d9f3 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.


More information about the tor-commits mailing list