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 2016/03/31 02:33:20 UTC
[Bug 59254] New: testWsCloseThenTcpResetWhenOnMessageSends failed
for APR
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
[Bug 59254] testWsCloseThenTcpResetWhenOnMessageSends failed for APR
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59254
--- Comment #1 from Huxing Zhang <hu...@gmail.com> ---
Created attachment 33715
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33715&action=edit
Patch to fix the test case
--
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
[Bug 59254] testWsCloseThenTcpResetWhenOnMessageSends failed for APR
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59254
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Thanks for the report and the patch. It has been applied to 7.0.x for 7.0.70
onwards.
--
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