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