Have a look at the CLONE special function in rlm_perl documentation.
Initiate your db connections in that function.

--
-------------------------------------------
Apostolos Pantsiopoulos
Kinetix Tele.com R & D
email: r...@kinetix.gr
-------------------------------------------

On 7/4/2010 12:01 μμ, Nasser Heidari wrote:
Hi,
I'm using mod_perl in my radius configuration and using it I write some
logs to database.
Today I noticed that, there are lots of mysql connections in TIME_WAIT
state.

# netstat -epn --tcp | grep TIME_WAIT | wc -l
15015

netstat -epn --tcp | grep TIME_WAIT | tail -1
tcp 0  0 192.168.1.4:49060   192.168.1.6:3306          TIME_WAIT

I'm sure it is because of mod_perl, and I'm looking forward to force
radius to use permanent mysql connections.
Has anyone any idea?

Thanks in advance


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to