tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59254] New: testWsCloseThenTcpResetWhenOnMessageSends failed for APR
Date Thu, 31 Mar 2016 00:33:20 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59254

            Bug ID: 59254
           Summary: testWsCloseThenTcpResetWhenOnMessageSends failed for
                    APR
           Product: Tomcat 7
           Version: trunk
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: huxing.zhang@gmail.com

Created attachment 33714
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33714&action=edit
Test case output

The following test case is constantly failing in my environment.
org.apache.tomcat.websocket.server.TestClose#testWsCloseThenTcpResetWhenOnMessageSends

test case is run against trunk(r1737152).

Environment details:

OS: Mac OS X
JDK: 1.6.0_65 + 1.7.0_80 (for web socket test cases, 1.7.0_80 should be used)
tcnative version: 1.2.5 
APR version: 1.5.2
openssl version:  OpenSSL 1.0.2g  1 Mar 2016


Testcase: testWsCloseThenTcpResetWhenOnMessageSends took 0.148 sec
    FAILED
Rx: NORMAL_CLOSURE
junit.framework.AssertionFailedError: Rx: NORMAL_CLOSURE
    at
org.apache.tomcat.websocket.server.TestClose.awaitOnClose(TestClose.java:107)
    at
org.apache.tomcat.websocket.server.TestClose.awaitOnClose(TestClose.java:100)
    at
org.apache.tomcat.websocket.server.TestClose.testWsCloseThenTcpResetWhenOnMessageSends(TestClose.java:267)


I have confirmed that server received web socket NORMAL_CLOSURE frame before
the connection is reset forcely.

My suggestion is to expect NORMAL_CLOSURE as well as CLOSED_ABNORMALLY, just
like what
org.apache.tomcat.websocket.server.TestClose#testWsCloseThenTcpCloseWhenOnMessageSends
does.

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