From bd15bb8f825c5f4d45e2220e1e8f1e9932d5f9f9 Mon Sep 17 00:00:00 2001 From: Thomas Porzelt Date: Thu, 17 Nov 2011 19:18:17 +0100 Subject: [PATCH] [core] fix for previous commit. gc requency was set to 10s not 5min --- src/main/worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/worker.c b/src/main/worker.c index 89aa3af..6441f6c 100644 --- a/src/main/worker.c +++ b/src/main/worker.c @@ -676,7 +676,7 @@ void li_worker_con_put(liConnection *con) { li_connection_reset(con); /* free unused connections. we keep max(connections_active) for the past 5min allocated */ - if ((now - wrk->connections_gc_ts) > 10.0) { + if ((now - wrk->connections_gc_ts) > 300.0) { guint i; for (i = wrk->connections->len; i > wrk->connections_active_max_5min; i--) {