tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53342] New: If starting immediately after Tomcat stop fail, BindException will throw.
Date Fri, 01 Jun 2012 09:34:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53342

          Priority: P2
            Bug ID: 53342
          Assignee: dev@tomcat.apache.org
           Summary: If starting immediately after Tomcat stop fail,
                    BindException will throw.
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: kfujino@apache.org
          Hardware: All
            Status: NEW
           Version: trunk
         Component: Catalina
           Product: Tomcat 7

e.g.
When Context#stop throw LifecycleException, the main thread stops, 
but startStopThreads of Host/Engine will remain for a while. 
Because, startStopThreads is not a demon thread. 

As a result, 
even if a main thread stops, Acceptor Threads of 8080/8009 is not stopped. 

keepAliveTime for 10 seconds is set up now. 
===
startStopExecutor = new ThreadPoolExecutor(
            getStartStopThreadsInternal(),
            getStartStopThreadsInternal(), 10, TimeUnit.SECONDS,
            startStopQueue);
===

Therefore, in order to avoid BindException, the waiting for 10 seconds is
required. 

I think that I need to make startStopThreads into a demon thread. 

Best Regards.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message