From: Masamichi Hosoda Date: Wed, 28 Jul 2021 23:30:43 +0000 (+0900) Subject: Fix idle_timeout (#4155) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87b7a1dbeb7784da7eb3cb650749eb125f02f15a;p=thirdparty%2Ffreeradius-server.git Fix idle_timeout (#4155) fr_pool_connection_release() recorded connection's last_reserved time instead of last_released. Since the last_released time of the connection was not updated, the starting point of the idle_timeout was always the connection opened time instead of the connection released time. This commit fixes it. --- diff --git a/src/lib/server/pool.c b/src/lib/server/pool.c index 2799f803370..16d70519f43 100644 --- a/src/lib/server/pool.c +++ b/src/lib/server/pool.c @@ -1383,7 +1383,7 @@ void fr_pool_connection_release(fr_pool_t *pool, request_t *request, void *conn) /* * Record when the connection was last released */ - this->last_reserved = fr_time(); + this->last_released = fr_time(); pool->state.last_released = this->last_released; /*