]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix idle_timeout (#4155)
authorMasamichi Hosoda <trueroad@users.noreply.github.com>
Wed, 28 Jul 2021 23:30:43 +0000 (08:30 +0900)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 23:30:43 +0000 (19:30 -0400)
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.

src/lib/server/pool.c

index 2799f8033701437b122226aa3c4062b2030a44d1..16d70519f43e0aa3e76ce938decd95b092d99fb7 100644 (file)
@@ -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;
 
        /*