don't give the selector infinite time to shutdown
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 21 Mar 2007 01:34:07 +0000 (01:34 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 21 Mar 2007 01:34:07 +0000 (01:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@520693 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioEndpoint.java

index dc71016..fb790b0 100644 (file)
@@ -1225,7 +1225,7 @@ public class NioEndpoint {
             close = true;
             events.clear();
             selector.wakeup();
-            try { stopLatch.await(); } catch (InterruptedException ignore ) {}
+            try { stopLatch.await(5,TimeUnit.SECONDS); } catch (InterruptedException ignore ) {}
         }
         
         public void addEvent(Runnable event) {