From fd4baf7fee59a5d0630a24fab57414612856dd90 Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 2 Jul 2010 17:50:56 +0000 Subject: [PATCH] Make new timeout thread a daemon thread so Tomcat will shutdown properly 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/net/JIoEndpoint.java b/java/org/apache/tomcat/util/net/JIoEndpoint.java index 74af56280..2fa803db8 100644 --- a/java/org/apache/tomcat/util/net/JIoEndpoint.java +++ b/java/org/apache/tomcat/util/net/JIoEndpoint.java @@ -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(); } } -- 2.11.0