You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/04/24 13:57:28 UTC

DO NOT REPLY [Bug 42218] New: - CLIENT_DISCONNECT event missing

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42218>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42218

           Summary: CLIENT_DISCONNECT event missing
           Product: Tomcat 6
           Version: 6.0.11
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: matthias.reich@siemens.com


The behavior is easily reproducible for both Http11AprProtocol and
Http11NioProtocol by running my corrected test webapp from bug 42198 (
http://issues.apache.org/bugzilla/attachment.cgi?id=20025 ) in Tomcat 6 compiled
from trunk with the Servlet init parameter 'maxTimeout' set to 100 in web.xml.

Load the index page into a browser. When the page has started polling, close the
browser.
The Servlet's event method will get a READ event, tries to read from the input
stream, but there is nothing to read. Therefore, it simply returns.
However, it gets the READ presented again and again (with 100% CPU) until the
response is closed by the response provider thread.

Should the Servlet itself interpret a READ event with no bytes to read as a
client disconnect and close the event?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 42218] - CLIENT_DISCONNECT event missing

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42218>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42218


remm@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From remm@apache.org  2007-04-24 05:11 -------
On some platforms, at least with APR, it is not possible to get the disconnect
status, in which case you get a READ and an exception trying to read data.
Again, please use the user list to discuss things before filing a bug report.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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