From: Oliver Jowett <oliver@opencloud.com>
To: Laurent Sylvain <sylvain.laurent@elca.ch>
Cc: 'pgsql-jdbc@postgresql.org' <pgsql-jdbc@postgresql.org>
Subject: Re: Bug (and fix): leaks of TCP connections when connected
Date: Tue, 22 Jun 2004 14:03:38 +1200
Message-ID: <40D7937A.3040703@opencloud.com> (raw)
In-Reply-To: <A13B47F8EC3FD111A91500C04FD2A2820567E6FA@exchange.elca.ch>
References: <A13B47F8EC3FD111A91500C04FD2A2820567E6FA@exchange.elca.ch>
Laurent Sylvain wrote:
> Hello,
>
> I experienced some TCP connection leaks when using PGSQL JDBC driver 7.4
> (build 214) to connect to a 7.3.4 server.
> The symptoms are that when performing a netstat on the client machine, many
> connections were in the CLOSE_WAIT state.
>
> The problem is that the driver tries to connect using v3 protocol and when
> it sees that the server doesn't understand it, it opens a new connection
> (PGStream) to the server without closing the previous one:
In theory the discarded connections should eventually be garbage
collected and closed, right? So at least the leak is bounded.
(I'll check that this is fixed in my patches; I restructured that area
quite a bit)
-O
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: oliver@opencloud.com, sylvain.laurent@elca.ch
Subject: Re: Bug (and fix): leaks of TCP connections when connected
In-Reply-To: <40D7937A.3040703@opencloud.com>
References: <A13B47F8EC3FD111A91500C04FD2A2820567E6FA@exchange.elca.ch> <40D7937A.3040703@opencloud.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