]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
updated CUI to use new connection pools 78/head
authorAlan Buxey <alan.buxey@gmail.com>
Sun, 19 Aug 2012 20:33:02 +0000 (21:33 +0100)
committerAlan Buxey <alan.buxey@gmail.com>
Sun, 19 Aug 2012 20:33:02 +0000 (21:33 +0100)
update of the CUI module config to use the new connection pools method
as per its 'parent' SQL heritage

raddb/mods-available/cui

index b1ba225273a93af35c9bd499677b4e46ccf27eb9..fc444ff71cda1756e0683f10f0d877e33efda2d0 100644 (file)
@@ -22,8 +22,15 @@ sql cui {
        radius_db = "db_name"
 #      sqltrace = yes
 #      sqltracefile = ${logdir}/cuitrace.sql
-       num_sql_socks = 5
-       connect_failure_retry_delay = 60
+        pool {
+                start = 5
+                min = 4
+                max = 10
+                spare = 3
+                uses = 0
+                lifetime = 0
+                idle_timeout = 60
+        }
        cui_table = "cui"
        sql_user_name = "%{User-Name}"
 #$INCLUDE sql/${database}/cui.conf