From: Arran Cudbard-Bell Date: Sun, 6 Nov 2011 01:17:29 +0000 (+0100) Subject: Add cleanup_delay configuration item with a default of five seconds X-Git-Tag: release_3_0_0_beta0~528 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b59ffc5ef042a1d0615ba660f2a5527f682ae41;p=thirdparty%2Ffreeradius-server.git Add cleanup_delay configuration item with a default of five seconds without this we always end up cleaning up start-spare connections on the first few requests. --- diff --git a/src/main/connection.c b/src/main/connection.c index 4cfa980b0d3..9ca230acbc3 100644 --- a/src/main/connection.c +++ b/src/main/connection.c @@ -102,7 +102,9 @@ static const CONF_PARSER connection_config[] = { 0, "0" }, { "lifetime", PW_TYPE_INTEGER, offsetof(fr_connection_pool_t, lifetime), 0, "0" }, - { "idle_timeout", PW_TYPE_INTEGER, offsetof(fr_connection_pool_t, idle_timeout), + { "cleanup_delay", PW_TYPE_INTEGER, offsetof(fr_connection_pool_t, cleanup_delay), + 0, "5" }, + { "idle_timeout", PW_TYPE_INTEGER, offsetof(fr_connection_pool_t, idle_timeout), 0, "60" }, { "lazy", PW_TYPE_BOOLEAN, offsetof(fr_connection_pool_t, lazy_init), 0, NULL },