mirror of
https://github.com/happyfish100/fastdfs-client-java.git
synced 2026-09-20 03:40:28 +00:00
fix:connection pool
This commit is contained in:
@@ -54,8 +54,7 @@ public class ConnectionPool {
|
||||
if (key != null) {
|
||||
ConnectionManager connectionManager = CP.get(key);
|
||||
if (connectionManager != null) {
|
||||
ConnectionInfo connectionInfo = new ConnectionInfo(trackerServer.getSocket(),trackerServer.getInetSocketAddress(),System.currentTimeMillis(),true);
|
||||
connectionManager.freeConnection(connectionInfo);
|
||||
connectionManager.freeConnection(trackerServer);
|
||||
} else {
|
||||
trackerServer.closeDirect();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user