libapache-mod-auth-mysql "MySQL Server has gone away" fix

I've been using libapache2-mod-auth-mysql for a CiviCRM site which requires authentication from a Drupal DB, and
it worked well generally but gave intermittent MySQL disconnections. These were making the authentication fail with an error 500, which was ... ugly ...

It took lots of digging, but eventually I found a simple patch that seems to fix the problem. It simply tells MySQL to reconnect when the link fails, which was (before MySQL 5.0) the default but isn't any more.

If this patch passes QA (gimme a week or two to be sure), I'll post updated debs for Ubuntu Feisty and Debian Etch i386 here. If you want a package sooner, just ask ... you can help me test it out :)

This is Debian bug #420010

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <code> <br> <h2> <h3> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.