From: Alan T. DeKok Date: Sun, 13 Jul 2025 11:56:42 +0000 (-0400) Subject: show when we hit boundaries X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40be6713cff490d42eea29842bc77beb0e35549e;p=thirdparty%2Ffreeradius-server.git show when we hit boundaries so that the poor admin reading the debug output can find out why the connection was closed --- diff --git a/src/lib/server/trunk.c b/src/lib/server/trunk.c index b29bba6f50a..74726987fbc 100644 --- a/src/lib/server/trunk.c +++ b/src/lib/server/trunk.c @@ -1289,6 +1289,7 @@ static void trunk_request_enter_sent(trunk_request_t *treq) * Enforces max_uses */ if ((trunk->conf.max_uses > 0) && (tconn->sent_count >= trunk->conf.max_uses)) { + DEBUG3("Trunk hit max uses %" PRIu64 " at %d", trunk->conf.max_uses, __LINE__); trunk_connection_enter_draining_to_free(tconn); } } @@ -1335,6 +1336,7 @@ static void trunk_request_enter_reapable(trunk_request_t *treq) treq->sent = true; if ((trunk->conf.max_uses > 0) && (tconn->sent_count >= trunk->conf.max_uses)) { + DEBUG3("Trunk hit max uses %" PRIu64 " at %d", trunk->conf.max_uses, __LINE__); trunk_connection_enter_draining_to_free(tconn); } }