2
0
Fork 0

[core] fix for previous commit. gc requency was set to 10s not 5min

personal/stbuehler/wip
Thomas Porzelt 2011-11-17 19:18:17 +01:00
parent ab313d20c2
commit bd15bb8f82
1 changed files with 1 additions and 1 deletions

View File

@ -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--) {