From f9ba0c65467fe80f65b3789365cfac874198a337 Mon Sep 17 00:00:00 2001 From: Mike Perry Date: Wed, 24 Jan 2018 00:03:24 +0000 Subject: Bug 24989: Count client hsdir gets towards MaxClientCircuitsPending. We removed this by breaking them out from general in #13837. --- 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 bc9c4bccbd..3125fff650 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -384,7 +384,7 @@ count_pending_general_client_circuits(void) SMARTLIST_FOREACH_BEGIN(circuit_get_global_list(), circuit_t *, circ) { if (circ->marked_for_close || circ->state == CIRCUIT_STATE_OPEN || - circ->purpose != CIRCUIT_PURPOSE_C_GENERAL || + !CIRCUIT_PURPOSE_COUNTS_TOWARDS_MAXPENDING(circ->purpose) || !CIRCUIT_IS_ORIGIN(circ)) continue; -- cgit v1.2.3-54-g00ecf