Re: Blocking connection and timeout problem

From: KÖPFERL Robert <robert(dot)koepferl(at)sonorys(dot)at>
To: "'dbrignar(at)uolsinectis(dot)com'" <dbrignar(at)uolsinectis(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Blocking connection and timeout problem
Date: 2005-08-05 07:43:44
Message-ID: ED4E30DD9C43D5118DFB00508BBBA76EB16825@neptun.sonorys.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Erm, no, it is a Solaris box.
And as I could experience, there are rather long timeouts in solaris' tcp
implementation.

Thanks anyway.

What about Postgres. Wouldn't it be better to have postgres sending keep
alive or heart beat packages during that time?

|-----Original Message-----
|From: Dario Brignardello [mailto:dbrignar(at)uolsinectis(dot)com]
|Sent: Mittwoch, 03. August 2005 19:33
|To: KÖPFERL Robert
|Cc: pgsql-admin(at)postgresql(dot)org
|Subject: Re: [ADMIN] Blocking connection and timeout problem
|
|
|Assuming you are on a linux box (Not sure if it's stated in your mail,
|sorry if I miss that) you could set
|
|/proc/sys/net/ipv4/tcp_keepalive_time
|
|to a lower value. That should do the trick :-)
|
|
|Hope it helps.
|
|Greetings
|Dario.
|
|
|
|On Wed, 2005-08-03 at 16:48 +0200, KÖPFERL Robert wrote:
|>
|>
|>
|> |-----Original Message-----
|> |From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
|> |Sent: Mittwoch, 03. August 2005 16:38
|> |To: KÖPFERL Robert
|> |Cc: pgsql-admin(at)postgresql(dot)org
|> |Subject: Re: [ADMIN] Blocking connection and timeout problem
|> |
|> |
|> |=?iso-8859-1?Q?K=D6PFERL_Robert?=
|<robert(dot)koepferl(at)sonorys(dot)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
|>
|>
|--
|Atte:
|Dario Brignardello
|Planificacion y Desarrollo
|Tecnologia
|UOL Argentina S.A
|
|Florida 537 Piso 6, Buenos Aires, Argentina
|+54-11-4321-9110 ext 2533
|PGP public key: http://webs.uolsinectis.com.ar/dbrignar/pgp.html
|

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message KÖPFERL Robert 2005-08-05 07:44:41 Re: hot backup
Previous Message Aljaž Bizjak Zupanc 2005-08-05 06:30:15 Re: Data integrity check when bad sectors occur