Skip to content

Commit 5be425e

Browse files
committed
Remove alive check in connection pool.
1 parent 84067dd commit 5be425e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/main/com/schooner/MemCached/SchoonerSockIOPool.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -549,17 +549,6 @@ public final SchoonerSockIO getConnection(String host) {
549549
socket = null;
550550
}
551551

552-
if (socket != null) {
553-
socket.close();
554-
try {
555-
socket.sockets.invalidateObject(socket);
556-
} catch (Exception e1) {
557-
if (log.isErrorEnabled())
558-
log.error("++++ failed to close socket : " + socket.toString());
559-
}
560-
socket = null;
561-
}
562-
563552
if (socket == null) {
564553
Date now = new Date();
565554
hostDead.put(host, now);

0 commit comments

Comments
 (0)