]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Increase the amount of time a pool spends in the garbage list
authorAlejandro Perez <alejandro.perez.mendez@gmail.com>
Tue, 9 May 2017 12:21:44 +0000 (14:21 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 9 May 2017 13:37:32 +0000 (09:37 -0400)
Under specific circumstances (e.g high authentication load) a client might keep using an old pool since the socket did not expire. 60 seconds seems too low.
Increased to make sure we do not delete it while it is still being used.

src/main/realms.c

index 64075a8c393244304b0c6f84aecb7bb7d6a4ced4..9bee6598e514537a1b055d2526bc848477ccd11e 100644 (file)
@@ -1154,7 +1154,7 @@ void realm_pool_free(home_pool_t *pool)
        }
 
        this->next = NULL;
-       this->when = now + 60;
+       this->when = now + 300;
        this->pool = pool;
        pthread_mutex_unlock(&pool_free_mutex);
 }