Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20BF3CF88 for ; Thu, 13 Nov 2014 17:46:23 +0000 (UTC) Received: (qmail 29137 invoked by uid 500); 13 Nov 2014 17:46:22 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 29101 invoked by uid 500); 13 Nov 2014 17:46:22 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 29091 invoked by uid 99); 13 Nov 2014 17:46:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2014 17:46:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pharkins@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2014 17:45:55 +0000 Received: by mail-wi0-f179.google.com with SMTP id ex7so173288wid.6 for ; Thu, 13 Nov 2014 09:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zq/f3njBV3XHTw6IUQOB0GCQv4VpQ8ILs8AljHF1W38=; b=fz9T+A1+fsoWX4n7HjrGv0UkLvpL4nEhlMOoKGizJgOgsmFW0TdXnrO+gVi3bGps3s ZIqEWWDCI65NwzSsZZUvypmW6tf8RG0zaHU8OLeHwhDdE0kt9yEyv5+q4fEHSxv76jbH 2PNCAd7d2ePZd1DaPfANGXVeLdrEe3K8qWNoOMrDJ1T7FM735oDbeXBe29p+EvvN0Hww IRPPUUGHrxFdDUQBisyeBPrs0SUx6vDzHkbO0SS9edNrWCvjY6h59axMVDQobxPUImjO /sdogN8A1q2qtICAzGZxNYajxc0+OXZS8BtsYdZk2O7B0P2Bpa/uxYgnYJgz5aRBl1Tw ZSBw== MIME-Version: 1.0 X-Received: by 10.194.9.1 with SMTP id v1mr6209237wja.124.1415900709627; Thu, 13 Nov 2014 09:45:09 -0800 (PST) Received: by 10.27.217.72 with HTTP; Thu, 13 Nov 2014 09:45:09 -0800 (PST) In-Reply-To: <20141113182144.b8b7d91b26390b945dce2492@wanadoo.fr> References: <20141113182144.b8b7d91b26390b945dce2492@wanadoo.fr> Date: Thu, 13 Nov 2014 12:45:09 -0500 Message-ID: Subject: Re: Disconnect database connection after idle timeout From: Perrin Harkins To: Vincent Veyron Cc: modperl Content-Type: multipart/alternative; boundary=047d7b5d9c63d5b11b0507c11284 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d9c63d5b11b0507c11284 Content-Type: text/plain; charset=UTF-8 On Thu, Nov 13, 2014 at 12:21 PM, Vincent Veyron wrote: > Nobody suggested using connect_cached, where the documentations says : > > The cached database handle is replaced with a new > connection if it has been disconnected or if the "ping" method fails > > Would that not solve OP's problem? Well, Apache::DBI should already be doing a ping and a successful re-connect if needed. If that isn't working with Apache::DBI, there's no reason to think it will work better with connect_cached. Also, Apache::DBI has some additional things in it (avoiding caching connections during startup, protection from dangling transactions at the end of a request) that might be needed. - Perrin --047d7b5d9c63d5b11b0507c11284 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= hu, Nov 13, 2014 at 12:21 PM, Vincent Veyron <vv.lists@wanadoo.fr&g= t; wrote:

- = Perrin
--047d7b5d9c63d5b11b0507c11284--