summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_circuit.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-12-03 11:08:13 -0500
committerGeorge Kadianakis <desnacked@riseup.net>2019-12-10 18:33:48 +0200
commitfc32349adc33ceb0323b7149d661fba71b7f7b98 (patch)
treef19d3af10d6603e489d7a3e0f8fd87ea2404acc5 /src/feature/hs/hs_circuit.h
parent65759f29019ed4cd33502fef9b06bb92aa6e348a (diff)
downloadtor-fc32349adc33ceb0323b7149d661fba71b7f7b98.tar.gz
tor-fc32349adc33ceb0323b7149d661fba71b7f7b98.zip
hs-v3: Handle client rendezvous circuit timeout
With v3, the "pending_final_cpath" of a circuit is always NULL which means that for v3, established client rendezvous circuit waiting for the intro point to ACK, will always end up timing out quickly. This can increase the delays to which you connect to a service since in order to succeed, the rendezvous circuit needs to fully established (CIRCUIT_PURPOSE_C_REND_JOINED) within the cutoff of the introduction circuit as well which is these days around 2-3 seconds. Fixes #32021 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_circuit.h')
-rw-r--r--src/feature/hs/hs_circuit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/hs/hs_circuit.h b/src/feature/hs/hs_circuit.h
index 42e5ca1348..c044ad89c4 100644
--- a/src/feature/hs/hs_circuit.h
+++ b/src/feature/hs/hs_circuit.h
@@ -66,6 +66,8 @@ int hs_circuit_setup_e2e_rend_circ(origin_circuit_t *circ,
int hs_circuit_setup_e2e_rend_circ_legacy_client(origin_circuit_t *circ,
const uint8_t *rend_cell_body);
+bool hs_circ_is_rend_sent_in_intro1(const origin_circuit_t *circ);
+
#ifdef HS_CIRCUIT_PRIVATE
STATIC hs_ident_circuit_t *