> From: "Levine, Peter W" <[EMAIL PROTECTED]>
> Date: Fri, 18 Oct 2002 08:52:03 -0700
> To: "Levine, Peter W" <[EMAIL PROTECTED]>,   "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> Subject: RE: Connections happening too fast?
> 
>> On our development system (SunOS 5.7) my program would 'hang' on occasion
>> immediately after a call to dbh->connect. This would be after a longish
>> sequence of connects & disconnects to initialize some data files. By
>> 'hang' I mean it never returned. A debug statement immediately after
>> dbh->connect() would not print. And it always hung in the same place after
>> completing just so many connects & disconnects.

>> 
>> I have to connect & disconnect in my program because we are not using
>> mod_perl.

I guess I don't understand what one has to do with the other. Typically I
call DBI->connect() just once at the beginning of a Perl script, and reuse
the handle as many times as I need.

>> I was able to 'correct' the problem by adding sleep(3)
>> immediately prior to the call to dbh->connect.
>> 

Doesn't sound like much of a workaround.

Reply via email to