Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 73108 invoked from network); 9 Jul 2007 14:57:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2007 14:57:00 -0000 Received: (qmail 78195 invoked by uid 500); 9 Jul 2007 14:57:02 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 78171 invoked by uid 500); 9 Jul 2007 14:57:02 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 78158 invoked by uid 99); 9 Jul 2007 14:57:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 07:57:02 -0700 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=RCVD_IN_WHOIS_BOGONS,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [216.138.240.12] (HELO mail.acerenting.com) (216.138.240.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 07:56:58 -0700 Received: from HP72472929110 (CPE0011d8edaa7f-CM000f212f8d37.cpe.net.cable.rogers.com [70.25.171.82]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.acerenting.com (Postfix) with ESMTP id 2731D1580045; Mon, 9 Jul 2007 10:59:06 -0400 (EDT) Message-ID: <025901c7c239$326d0b40$66d482d8@CORP.LOCAL> Reply-To: "Danie Qian" From: "Danie Qian" To: , References: <00b701c7c000$f2f71300$66d482d8@CORP.LOCAL><1183749481.5095.44.camel@fuego><00d501c7c007$700c0b10$66d482d8@CORP.LOCAL><1183752783.5095.56.camel@fuego><20070706230429.34edfd4a@grimnir><1183772227.5095.70.camel@fuego> <20070707093828.618637f7@grimnir> <01a501c7c0ac$e41185d0$66d482d8@CORP.LOCAL> <4692418D.8050600@bellatlantic.net> Subject: Re: mod_authn_dbd - internal server error after certain idle time Date: Mon, 9 Jul 2007 10:55:31 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="gb2312"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Virus-Checked: Checked by ClamAV on apache.org ----- Original Message ----- From: "Tom Donovan" To: Sent: Monday, July 09, 2007 10:09 AM Subject: Re: mod_authn_dbd - internal server error after certain idle time > Danie Qian wrote: >> >> >> It is working a little better now after I set both DBDKeep and DBDMin to >> zero. But I am still getting the internal server error from time to >> time. Users usually can get pass the error by reloading the same page. >> Here is the error messages in the log: >> >> [Sat Jul 07 02:56:44 2007] [error] (20014)Internal error: DBD [mysql] >> Error: Lost connection to MySQL server during query >> [Sat Jul 07 02:56:44 2007] [error] [client 75.87.112.250] >> authn_dbd_acquire: Error looking up josiahhansen in database >> > > Unfortunately, DBD connection pooling (which is performed by the > apr-util reslist facility) presumes that connections last longer than > DBDTimeout, so just setting DBDKeep and DBDMin will not completely > eliminate the problem. > > The proposed changes to the MySQL driver seem like a good idea and they > may help - but they will only help MySQL, not any other databases. > > I entered a new APR bug and proposed a patch - > http://issues.apache.org/bugzilla/show_bug.cgi?id=42841 > to change the interpretation of timeout so that it will work to avoid > this error. > > With this patch, setting DBDTimout lower than the MySQL system variable > 'wait_timeout' will ensure than expired connections never get used. > Assuming by DBDTimeout you mean DBDExptime in mod_dbd documentation where it implies a keepalive value, how about making mod_dbd to send something to mysql server so that its wait_timeout timer gets reset whenever the keepalive time elapses? Is this what the setting originally meant for? As I am pretty new to this listing and I apologize if I am not on the same page as you guys.