tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13366] New: - Streaming connections prevent clean shutdown
Date Mon, 07 Oct 2002 16:06:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13366>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13366

Streaming connections prevent clean shutdown

           Summary: Streaming connections prevent clean shutdown
           Product: Tomcat 4
           Version: 4.0.4 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jrumney@altio.com


org.apache.catalina.core.StandardWrapper.unload() contains the following code:

        // Loaf a while if the current instance is allocated
        // (possibly more than once if non-STM)
        if (countAllocated > 0) {
            boolean first = true;
            while (countAllocated > 0) {
                if (first) {
                    log("Waiting for " + countAllocated +
                        " instance(s) to be deallocated");
                    first = false;
                }
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    ;
                }
            }
        }

If a web application is designed to provide a continuous stream of data which
never ends, the above loop is effectively an infinite loop.  Perhaps after some
timeout it would be better if Tomcat went ahead and unloaded the web application
regardless of the open connections.

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


Mime
View raw message