THRIFT-1420. java: Nonblocking and HsHa server should make sure to close all their...
authorBryan Duxbury <bryanduxbury@apache.org>
Fri, 4 Nov 2011 00:23:30 +0000 (00:23 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Fri, 4 Nov 2011 00:23:30 +0000 (00:23 +0000)
commitdf971daf373ceda6de2f76e5f0713c64b6d2e242
treee77f84418bae0c5f5e5fab0c9ff5c80d8cb110af
parente7bdf70daba05e2fa704a3562eb924573342777b
THRIFT-1420. java: Nonblocking and HsHa server should make sure to close all their socket connections when the selector exits

This patch makes the selector threads close out all of their open sockets before completely exiting. In testing, this appears to alleviate issues with hanging clients.

Patch: Thomas Kielbus

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197370 13f79535-47bb-0310-9956-ffa450edef68
lib/java/src/org/apache/thrift/server/TNonblockingServer.java
lib/java/src/org/apache/thrift/server/TThreadedSelectorServer.java
lib/java/test/org/apache/thrift/server/TestNonblockingServer.java