mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Simplify cannibalization logic now that all HS is vanguards
Co-authored-by: Mike Perry <mikeperry-git@torproject.org>
This commit is contained in:
parent
9afd9d0940
commit
52c5b8aa12
@ -2049,13 +2049,11 @@ circuit_should_cannibalize_to_build(uint8_t purpose_to_build,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For vanguards, the server-side intro circ is not cannibalized
|
/* The server-side intro circ is not cannibalized because it only
|
||||||
* because we pre-build 4 hop HS circuits, and it only needs a 3 hop
|
* needs a 3 hop circuit. It is also long-lived, so it is more
|
||||||
* circuit. It is also long-lived, so it is more important that
|
* important that it have lower latency than get built fast.
|
||||||
* it have lower latency than get built fast.
|
|
||||||
*/
|
*/
|
||||||
if (circuit_should_use_vanguards(purpose_to_build) &&
|
if (purpose_to_build == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO) {
|
||||||
purpose_to_build == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO) {
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user