X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BFC2247626D for ; Thu, 30 Jan 2003 18:54:00 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 10400476082 for ; Thu, 30 Jan 2003 18:54:00 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h0UNs05u000707; Thu, 30 Jan 2003 18:54:00 -0500 (EST) To: "Donald Fraser" Cc: pgsql-admin@postgresql.org Subject: Re: Lost connections In-reply-to: <005301c2c893$4ebd1f00$1664a8c0@DEMOLITION> References: <005301c2c893$4ebd1f00$1664a8c0@DEMOLITION> Comments: In-reply-to "Donald Fraser" message dated "Thu, 30 Jan 2003 19:10:47 +0000" Date: Thu, 30 Jan 2003 18:53:59 -0500 Message-ID: <706.1043970839@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/351 X-Sequence-Number: 7193 "Donald Fraser" writes: > As you can see there still existed the connection to the database that I ha= > d established from the Java app (from my computer 192.168.100.22). FWIW, that backend will eventually time out and go away. The delay is determined by whatever the TCP_KEEPALIVE code in your kernel does before reporting the connection to be lost. It's probably an hour or so, if the TCP code is RFC-compliant. I would not necessarily consider it a good idea to shorten that delay; you'd be giving up robustness against transient communication problems if you do. regards, tom lane