jakartaee / jakartaee/websocket

TCK: idle timout connection close behavior

Open
#480 31 comments 0 reactions 0 assignees View on GitHub
challenge TCK
Dominant language
Java
Stars
78
Forks
47
Avg merge
1h 32m
Merged PRs (30d)
1

Description

**Challenged tests**
com.sun.ts.tests.websocket.spec.application.closing.WSCClientIT.connectionHasBeenClosedWithStatus1006AfterTimeoutTest

**TCK Version**
HEAD (likely equivalent of 2.2)

**Description**
Test expects after a timeout we get a 1006 NO_CLOSE code, but in Eclipse Jetty we send 1001 GOING_AWAY on network for idle timeout, which is what the Autobahn Websocket Test Suite expects.

**Additional context**
The TCK shouldn't be dictating websocket protocol behaviors, that's for other testing suites to do.
The TCK should be following websocket protocol behavior, and should allow for any of the legitimate close status codes for an idle timeout.

Contributor guide

Open the contributing guide

Research direction

Start with the challenged test com.sun.ts.tests.websocket.spec.application.closing.WSCClientIT.connectionHasBeenClosedWithStatus1006AfterTimeoutTest and review its idle-timeout assertion. Compare the TCK expectation with the stated Jetty and Autobahn behavior, then adjust the test so legitimate idle-timeout close statuses are accepted. Run the challenged test to verify the updated behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.