From: Arran Cudbard-Bell Date: Wed, 4 Mar 2020 21:24:12 +0000 (-0600) Subject: trunk: Failed and closed should _NOT_ be excluded from the set of connections X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=326d01bb32d84182438cbdedb2ce4db1cf1219ed;p=thirdparty%2Ffreeradius-server.git trunk: Failed and closed should _NOT_ be excluded from the set of connections --- diff --git a/src/lib/server/trunk.c b/src/lib/server/trunk.c index 3ff1bd8e035..87094ea9536 100644 --- a/src/lib/server/trunk.c +++ b/src/lib/server/trunk.c @@ -3606,18 +3606,14 @@ static uint32_t trunk_requests_per_connnection(uint16_t *conn_count_out, uint32_ */ conn_count = fr_trunk_connection_count_by_state(trunk, FR_TRUNK_CONN_ALL ^ (FR_TRUNK_CONN_DRAINING | - FR_TRUNK_CONN_DRAINING_TO_FREE | - FR_TRUNK_CONN_FAILED | - FR_TRUNK_CONN_CLOSED)); + FR_TRUNK_CONN_DRAINING_TO_FREE)); /* * Requests on all connections */ req_count = fr_trunk_request_count_by_state(trunk, FR_TRUNK_CONN_ALL ^ - (FR_TRUNK_CONN_DRAINING_TO_FREE | - FR_TRUNK_CONN_FAILED | - FR_TRUNK_CONN_CLOSED), FR_TRUNK_REQUEST_STATE_ALL); + FR_TRUNK_CONN_DRAINING_TO_FREE, FR_TRUNK_REQUEST_STATE_ALL); /* * No connections, but we do have requests