Permalink
Browse files

Close sockets on timeouts

  • Loading branch information...
afeinberg committed Jan 6, 2011
1 parent 59531ba commit 6a9e494bd40d8cf523c423c736455377a0a2b9e6
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/java/voldemort/store/socket/clientrequest/ClientRequestExecutor.java
@@ -80,8 +80,7 @@ public synchronized boolean checkTimeout(SelectionKey selectionKey) {
if(logger.isEnabledFor(Level.WARN))
logger.warn("Client request associated with " + socketChannel.socket() + " timed out");
- completeClientRequest();
- selectionKey.interestOps(0);
+ close();
return false;
}

0 comments on commit 6a9e494

Please sign in to comment.