On Fri, 8 Feb 2008, Gregory Stark wrote:
> "Toru SHIMOGAKI" <shimogaki.toru@oss.ntt.co.jp> writes:
>
>> The attached makes tcp-keep-alive enable. When PostgreSQL server gets down or
>> network gets down, client application can't receive any response from the server.
>
> This has to be an option, not on unconditionally. In fact they shouldn't
> be on automatically. Applications should have to explicitly request TCP
> keep-alives and set an application-specific appropriate interval.
> Otherwise you're breaking TCP in general for a behaviour which is only
> useful in particular circumstances.
Java does not support a configurable keepalive interval, it's simply an
on/off flag.
Kris Jurka