Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 4D407B5DC17 for ; Tue, 18 Oct 2011 20:42:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 66077-01 for ; Tue, 18 Oct 2011 23:42:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id D3C1BB5DC0C for ; Tue, 18 Oct 2011 20:42:47 -0300 (ADT) Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id p9INgg712864 for ; Tue, 18 Oct 2011 16:42:42 -0700 Message-ID: <4E9E0EF2.1050004@hogranch.com> Date: Tue, 18 Oct 2011 16:42:42 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: jdbc tcpKeepAlive parameter Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/55 X-Sequence-Number: 22308 the documentation is a little skimpy on the operation of tcpKeepAlive... we've got a scenario where the java client applications sometimes abort without cleaning up, and leave a postgres server process just sitting there. I'm assuming tcpKeepAlive=true would cause these processes to timeout eventually and clean themselves up? Is this a 2-way keepalive, in that if the server process dies, the client connection would timeout, too? on libpq, there's some options for the keepalive interval and count, but I don't see any such in JDBC? -- john r pierce N 37, W 122 santa cruz ca mid-left coast