Re: Bug (and fix): leaks of TCP connections when connected

Поиск
Список
Период
Сортировка
Искать
От
Kris Jurka
Тема
Re: Bug (and fix): leaks of TCP connections when connected
Дата
Msg-id
Pine.BSO.4.56.0406220433020.20144@leary.csoft.net
Ответ на
Список
Дерево обсуждения
Bug (and fix): leaks of TCP connections when connected to a <7.4 server Laurent Sylvain <sylvain.laurent@elca.ch>
Re: Bug (and fix): leaks of TCP connections when connected Oliver Jowett <oliver@opencloud.com>
Re: Bug (and fix): leaks of TCP connections when connected "Marcus Andree S. Magalhaes" <marcus.magalhaes@vlinfo.com.br>
Re: Bug (and fix): leaks of TCP connections when connected Oliver Jowett <oliver@opencloud.com>
Re: Bug (and fix): leaks of TCP connections when connected Kris Jurka <books@ejurka.com>
Re: Bug (and fix): leaks of TCP connections when connected Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug (and fix): leaks of TCP connections when connected Kris Jurka <books@ejurka.com>


On Mon, 21 Jun 2004, Laurent Sylvain wrote:

> 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:
> 

I've applied the attached patch to the 7.4 and 7.5 cvs trees.  It adds the 
pgStream.close() you suggested as well as closing the stream for other 
connection failures such as authentication failures or lack of ssl 
support.

Kris Jurka
В списке pgsql-jdbc по дате отправления
От: Laurent Sylvain
Дата:
От: David Wall
Дата:
FAQ