tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53391] New: CometEvent.close() doesn't close socket when called from different thread
Date Sat, 09 Jun 2012 06:02:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53391

          Priority: P2
            Bug ID: 53391
          Assignee: dev@tomcat.apache.org
           Summary: CometEvent.close() doesn't close socket when called
                    from different thread
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: lk@teamten.com
          Hardware: PC
            Status: NEW
           Version: 7.0.26
         Component: Connectors
           Product: Tomcat 7

If I call CometEvent.close() from within the event() method, it works fine: the
written data is flushed and the connection is closed. If I call it from a
different thread (in response to a non-HTTP event), the data is flushed to the
socket but the socket is not closed. This may be related to bug 51881 and this
line in Http11NioProcessor.java:

socket.getSocket().getPoller().add(socket.getSocket());

Simply calling response.close() doesn't work either.

-- 
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