Search squid archive

Re: custom auth not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux