Make new timeout thread a daemon thread so Tomcat will shutdown properly
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 2 Jul 2010 17:50:56 +0000 (17:50 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 2 Jul 2010 17:50:56 +0000 (17:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@960069 13f79535-47bb-0310-9956-ffa450edef68

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

index 74af562..2fa803d 100644 (file)
@@ -401,7 +401,8 @@ public class JIoEndpoint extends AbstractEndpoint {
             }
             
             // Start async timeout thread
-            Thread timeoutThread = new Thread(new AsyncTimeout(), getName() + "-AsyncTimeout");
+            Thread timeoutThread = new Thread(new AsyncTimeout(),getName() + "-AsyncTimeout");
+            timeoutThread.setDaemon(true);
             timeoutThread.start();
         }
     }