MySQL Forums
Forum List  »  Connector/JDBC and Java

Pooled connection closing sockets
Posted by: Andrew Ling
Date: December 07, 2016 09:33AM

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

Options: ReplyQuote


Subject
Written By
Posted
Pooled connection closing sockets
December 07, 2016 09:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.