pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dario Brignardello <dbrignar@sinectis.com>
To: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: pgsql-admin@postgresql.org
Subject: Re: Blocking connection and timeout problem
Date: Wed, 03 Aug 2005 15:50:38 -0300
Message-ID: <1123095038.15646.41.camel@aleph.hq.sinectis.com.ar> (raw)
In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB16822@neptun.sonorys.at>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB16822@neptun.sonorys.at>

Assuming you are on a linux box (Not sure if it's stated in your mail,
sorry if I missed that) you could set

/proc/sys/net/ipv4/tcp_keepalive_time

to a lower value. That should do the trick. 

Hope this helps
Greetings

Dario


On Wed, 2005-08-03 at 16:48 +0200, KÖPFERL Robert wrote:
> 
> 
> 
> |-----Original Message-----
> |From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> |Sent: Mittwoch, 03. August 2005 16:38
> |To: KÖPFERL Robert
> |Cc: pgsql-admin@postgresql.org
> |Subject: Re: [ADMIN] Blocking connection and timeout problem 
> |
> |
> |=?iso-8859-1?Q?K=D6PFERL_Robert?= <robert.koepferl@sonorys.at> writes:
> |> Why is that? Why isn't client A's transaction detected as dead ?
> |
> |It will be eventually, when the TCP connection times out.  The standard
> |timeout is generally an hour or two :-(
> 
> Seems not like so. I waited for two hours and it still existed.
> 
> But non-the-less. Can this timeout be configured to be less?
> 
> |
> |			regards, tom lane
> |
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
> 





view thread (8+ messages)  latest in thread

Message-ID: <1123095038.15646.41.camel@aleph.hq.sinectis.com.ar>
Permalink:  ../1123095038.15646.41.camel@aleph.hq.sinectis.com.ar/
Also on:    postgresql.org/message-id/1123095038.15646.41.camel@aleph.hq.sinectis.com.ar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dbrignar@sinectis.com, robert.koepferl@sonorys.at
  Subject: Re: Blocking connection and timeout problem
  In-Reply-To: <1123095038.15646.41.camel@aleph.hq.sinectis.com.ar>
  References: <ED4E30DD9C43D5118DFB00508BBBA76EB16822@neptun.sonorys.at> <1123095038.15646.41.camel@aleph.hq.sinectis.com.ar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox