https://bz.apache.org/bugzilla/show_bug.cgi?id=60623

            Bug ID: 60623
           Summary: When startStopThreads is 1, don't rely on an executor
                    and instead start synchronously
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: Macintosh
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: johndam...@apache.org
  Target Milestone: ----

The behavior right now in an embedded module is that if the startStopThread
count is 1, it is still executed asynchronously.  Usually in an embedded use
case, you only have a single executor, as a result you can't effectively wait
for the container to start before moving on.  Other containers (Jetty, Undertow
for instance) block on the main thread while the start up occurs (they start on
the main thread).

This change would make it so that if the count is 1, just run on the main
thread, instead of having an executor service run on start up.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to