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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to