pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: jdbc tcpKeepAlive parameter
Date: Tue, 18 Oct 2011 16:42:42 -0700
Message-ID: <4E9E0EF2.1050004@hogranch.com> (raw)

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




view thread (2+ messages)  latest in thread

Message-ID: <4E9E0EF2.1050004@hogranch.com>
Permalink:  ../4E9E0EF2.1050004@hogranch.com/
Also on:    postgresql.org/message-id/4E9E0EF2.1050004@hogranch.com

 · 

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-jdbc@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: jdbc tcpKeepAlive parameter
  In-Reply-To: <4E9E0EF2.1050004@hogranch.com>
  References: <4E9E0EF2.1050004@hogranch.com>

* 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