From 1e553b6c68b5bffeda07dea5b5adcac9730013dd Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 19 Apr 2016 14:23:12 -0400 Subject: 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 --- src/or/circuituse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/circuituse.c') 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; -- cgit v1.2.3-54-g00ecf