mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Merge remote-tracking branch 'dgoulet/bug23123_032_01'
This commit is contained in:
commit
9261f612ad
@ -2588,8 +2588,9 @@ service_rendezvous_circ_has_opened(origin_circuit_t *circ)
|
|||||||
tor_assert(circ->hs_ident);
|
tor_assert(circ->hs_ident);
|
||||||
tor_assert(TO_CIRCUIT(circ)->purpose == CIRCUIT_PURPOSE_S_CONNECT_REND);
|
tor_assert(TO_CIRCUIT(circ)->purpose == CIRCUIT_PURPOSE_S_CONNECT_REND);
|
||||||
|
|
||||||
/* Declare the circuit dirty to avoid reuse, and for path-bias */
|
/* Declare the circuit dirty to avoid reuse, and for path-bias. We set the
|
||||||
if (!TO_CIRCUIT(circ)->timestamp_dirty)
|
* timestamp regardless of its content because that circuit could have been
|
||||||
|
* cannibalized so in any cases, we are about to use that circuit more. */
|
||||||
TO_CIRCUIT(circ)->timestamp_dirty = time(NULL);
|
TO_CIRCUIT(circ)->timestamp_dirty = time(NULL);
|
||||||
pathbias_count_use_attempt(circ);
|
pathbias_count_use_attempt(circ);
|
||||||
|
|
||||||
|
@ -3332,8 +3332,9 @@ rend_service_rendezvous_has_opened(origin_circuit_t *circuit)
|
|||||||
NULL);
|
NULL);
|
||||||
rend_cookie = circuit->rend_data->rend_cookie;
|
rend_cookie = circuit->rend_data->rend_cookie;
|
||||||
|
|
||||||
/* Declare the circuit dirty to avoid reuse, and for path-bias */
|
/* Declare the circuit dirty to avoid reuse, and for path-bias. We set the
|
||||||
if (!circuit->base_.timestamp_dirty)
|
* timestamp regardless of its content because that circuit could have been
|
||||||
|
* cannibalized so in any cases, we are about to use that circuit more. */
|
||||||
circuit->base_.timestamp_dirty = time(NULL);
|
circuit->base_.timestamp_dirty = time(NULL);
|
||||||
|
|
||||||
/* This may be redundant */
|
/* This may be redundant */
|
||||||
|
Loading…
Reference in New Issue
Block a user