Re: [squid-users] custom auth not working

From: Chris Robertson <crobertson_at_gci.net>
Date: Thu, 11 Jun 2009 16:13:23 -0800

Al - Image Hosting Services wrote:
> Hi,
>
> On Thu, 11 Jun 2009, Chris Robertson wrote:
>> # Flush STDOUT
>> $|=1;
>>
>
> That fixed it. So, it is working. Would you have an idea on how to get
> it to reconnect to the mysql server, if the connection goes down?

Replace...

$sth->execute();

...with...

$sth->execute() or die $dbh->errstr;

...so your helper just exits on that condition. Squid will kick of
another one (and I think retry). If something is really wrong, Squid
will quit with a "Helpers dying too rapidly" message.

>
> Best Regards,
> Al

Chris
Received on Fri Jun 12 2009 - 00:14:01 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 12 2009 - 12:00:03 MDT