Re: close inactive client connection

From: "Luiz Bernardi" <lb(at)cplinformatica(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: close inactive client connection
Date: 2009-09-25 18:44:13
Message-ID: web-7640338@hm775.cl01.mobimail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Thanks, Scott.

I change the setting and then find out why they were losing the
client connection.
--
Luiz Agnaldo Bernardi
Fone 41 36755756
     41 99979849

On Fri, 25 Sep 2009 11:11:52 -0600
 Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
> On Fri, Sep 25, 2009 at 6:26 AM, Luiz Bernardi
><lb(at)cplinformatica(dot)com> wrote:
>> Hello,
>>
>> I am developing a system, using the ZeosLib, which maintains a
>>permanent
>> connection to the database.
>>
>> When the client loses the connection, the server does not recognize
>>this and
>> keeps the connection as if it were active. When the client attempts
>>to
>> reconnect, the server creates a new connection and the previous
>>remains
>> active.
>
> Eventually the server's network stack will check to see if the
> connection is alive or not by sending a tcp keepalive ping.  If it
> receives no answers after x number of tries, it will close the
>socket
> and the pg backend will be terminated.
>
> To adjust this time, look at the tcp keepalive parameters in either
> the postgresql.conf file or system wide on your server.  The default
> timeout is 2 hours.  It's not unusual to drop it to 5 or 10 minutes
>on
> busy systems.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luiz Bernardi 2009-09-25 18:56:55 Re: close inactive client connection
Previous Message Rob Marjot 2009-09-25 18:40:21 Re: stored procedure: RETURNS record