Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

Pooled connection closing sockets (6 replies)

$
0
0
Hi,

I am using mysql-connector-java-5.1.18

I have a pool manager (written in house) that manages a list of MysqlPooledConnections. This uses the standard ConnectionEventListener interface to detect errors and closes.

I notice that when a pooled connection is closed, the socket associated with it also gets closed (shown by netstat to be in TIME_WAIT state). Is this normal behaviour? I had assumed that by not closing the underlying connection, the socket would have been one of the resources that wouldn't be destroyed.

Am I doing something wrong or is there a setting to change this behaviour.

thanks for any help

Viewing all articles
Browse latest Browse all 884

Trending Articles