]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
show when we hit boundaries
authorAlan T. DeKok <aland@freeradius.org>
Sun, 13 Jul 2025 11:56:42 +0000 (07:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 13 Jul 2025 18:05:39 +0000 (14:05 -0400)
so that the poor admin reading the debug output can find out
why the connection was closed

src/lib/server/trunk.c

index b29bba6f50a82b08ecdb52ac03b2a82e4d40f09c..74726987fbc3f42d259d409cd5c3fa6492854a47 100644 (file)
@@ -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);
                }
        }