From 40be6713cff490d42eea29842bc77beb0e35549e Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sun, 13 Jul 2025 07:56:42 -0400 Subject: [PATCH] show when we hit boundaries so that the poor admin reading the debug output can find out why the connection was closed --- src/lib/server/trunk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/server/trunk.c b/src/lib/server/trunk.c index b29bba6f50..74726987fb 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); } } -- 2.47.3