diff options
author | David Goulet <dgoulet@ev0ke.net> | 2016-04-19 14:23:12 -0400 |
---|---|---|
committer | David Goulet <dgoulet@ev0ke.net> | 2016-04-19 14:24:20 -0400 |
commit | 1e553b6c68b5bffeda07dea5b5adcac9730013dd (patch) | |
tree | f08b71dc263f893adb688f420858751780693c9e /src/or/circuituse.c | |
parent | 520799f0846a2f32396fbbbea94a00fbe633c9d8 (diff) | |
download | tor-1e553b6c68b5bffeda07dea5b5adcac9730013dd.tar.gz tor-1e553b6c68b5bffeda07dea5b5adcac9730013dd.zip |
Increase number of preemptive internal circuits
When we connect to a hidden service as a client we may need three internal
circuits, one for the descriptor retrieval, introduction, and rendezvous.
Let's try to make sure we have them. Closes #13239.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 31003ea095..b5959944f1 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -1067,7 +1067,7 @@ circuit_predict_and_launch_new(void) if (rep_hist_get_predicted_internal(now, &hidserv_needs_uptime, &hidserv_needs_capacity) && ((num_uptime_internal<2 && hidserv_needs_uptime) || - num_internal<2) + num_internal<3) && router_have_consensus_path() != CONSENSUS_PATH_UNKNOWN) { if (hidserv_needs_uptime) flags |= CIRCLAUNCH_NEED_UPTIME; |