Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 5AE7B2E3367 for ; Fri, 8 Feb 2008 13:43:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 17798-03 for ; Fri, 8 Feb 2008 13:43:20 -0400 (AST) Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 39E9A2E32BF for ; Fri, 8 Feb 2008 13:43:21 -0400 (AST) Received: (qmail 895 invoked by uid 1112); 8 Feb 2008 17:43:20 -0000 Date: Fri, 8 Feb 2008 12:43:19 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Gregory Stark cc: Toru SHIMOGAKI , pgsql-jdbc@postgresql.org Subject: Re: proposal: setKeepAlive In-Reply-To: <87abmb2weo.fsf@oxford.xeocode.com> Message-ID: References: <47AC666C.9070704@oss.ntt.co.jp> <87abmb2weo.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/25 X-Sequence-Number: 18232 On Fri, 8 Feb 2008, Gregory Stark wrote: > "Toru SHIMOGAKI" 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