www.emsdn.com
Class Profile: Home »» Networking [Networking] under "Networking" »»» Unresponsive child

Unresponsive child


Matt Dunkin <mdunkin (AT) innflux (DOT) comwrote:
After some recent changes to my rlm_perl perl script I am getting the
following messages all the time
Tue Aug 8 08:08:50 2006 : Error: WARNING: Unresponsive child (id
2966633392) for request 28
Something's blocking the thread.
Each function in the perl script opens a mysql connection then closes it
before finishing the function. Could this be the problem? Should I
create an initial connection and use it throughout the script?
Yes. That would probably help a lot.
The "unresponsive child" message comes out after about 20 seconds of
problems, which is a pretty serious problem.
Alan DeKok.


No. 1# | By Developer Tags User at [2008-5-5] | size: 1796 bytes

I tried opening a mysql connection outside the functions in my perl
script then using that handle through out the perl script. I am getting
the following error

Error: rlm_perl: perl_embed:: module =
/ , func = accounting exit status=
DBD::mysql::db prepare failed: handle 2 is owned by thread 9b19fc8 not
current thread 9cfdac8 (handles can't be shared between threads and your
driver may need a CLNE method added) at
/ line 214.

Alan DeKok wrote:

>Matt Dunkin <mdunkin (AT) innflux (DOT) comwrote:


>
>>After some recent changes to my rlm_perl perl script I am getting the
>>following messages all the time
>>
>>Tue Aug 8 08:08:50 2006 : Error: WARNING: Unresponsive child (id
>>2966633392) for request 28

>
>>

>

Something's blocking the thread.


>
>>Each function in the perl script opens a mysql connection then closes it
>>before finishing the function. Could this be the problem? Should I
>>create an initial connection and use it throughout the script?

>
>>

>

Yes. That would probably help a lot.

The "unresponsive child" message comes out after about 20 seconds of
>problems, which is a pretty serious problem.
>

Alan DeKok.

http://deployingradius.com - The web site of the book
- The blog
>-
>List info/subscribe/unsubscribe? See
>
>


-
List info/subscribe/unsubscribe? See

No. 1# | By Developer Tags User at [2008-5-5] | size: 1765 bytes

Hi
Use sub CLNE to create for each thread separate SQL connection.
for more information see rlm_perl on wiki.freeradius.org

Tuesday 08 August 2006 19:34, Matt Dunkin wrote:
I tried opening a mysql connection outside the functions in my perl
script then using that handle through out the perl script. I am getting
the following error

Error: rlm_perl: perl_embed:: module =
/ , func = accounting exit status=
DBD::mysql::db prepare failed: handle 2 is owned by thread 9b19fc8 not
current thread 9cfdac8 (handles can't be shared between threads and your
driver may need a CLNE method added) at
/ line 214.

Alan DeKok wrote:
>Matt Dunkin <mdunkin (AT) innflux (DOT) comwrote:
>>After some recent changes to my rlm_perl perl script I am getting the
>>following messages all the time
>>
>>Tue Aug 8 08:08:50 2006 : Error: WARNING: Unresponsive child (id
>>2966633392) for request 28

>

Something's blocking the thread.
>
>>Each function in the perl script opens a mysql connection then closes it
>>before finishing the function. Could this be the problem? Should I
>>create an initial connection and use it throughout the script?

>

Yes. That would probably help a lot.

The "unresponsive child" message comes out after about 20 seconds of
>problems, which is a pretty serious problem.
>

Alan DeKok.

http://deployingradius.com - The web site of the book
- The blog
>-
>List info/subscribe/unsubscribe? See



Networking Hot!

Networking New!


Copyright © 2008 www.emsdn.com • All rights reserved • CMS Theme by www.emsdn.com - 0.219