Permanent mysql connection in mod_perl

2010-04-07 Thread Nasser Heidari
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

Re: Permanent mysql connection in mod_perl

2010-04-07 Thread Apostolos Pantsiopoulos
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

RE: Permanent mysql connection in mod_perl

2010-04-07 Thread Nasser Heidari
Subject: Re: Permanent mysql connection in mod_perl Have a look at the CLONE special function in rlm_perl documentation. Initiate your db connections in that function. Unfortunately I'm not familiar with this function, as I have searched , I think that only change that I need is to enclose my

Re: Permanent mysql connection in mod_perl

2010-04-07 Thread Apostolos Pantsiopoulos
@lists.freeradius.org] On Behalf Of Apostolos Pantsiopoulos Sent: Wednesday, April 07, 2010 13:37 To: freeradius-users@lists.freeradius.org Subject: Re: Permanent mysql connection in mod_perl Have a look at the CLONE special function in rlm_perl documentation. Initiate your db connections in that function