Repository navigation
Conversation
Motivation: The client integration test covers a normal closing handshake, but a wall-clock window cannot pin the exact deadline across both phases. Modification: Exercise the client frame output directly with its manual scheduler. Wait for the normal outgoing Close, deliver the positive peer reply halfway through the wait, and observe that the stage has consumed it. Keep the transport open and check the original deadline, not a new wait. Result: The original deadline and one outgoing Close are tested without changing the existing client integration coverage or production behavior. Tests: JDK 17: the focused spec passed on Scala 2.13.18 and 3.3.9. Scoped import organization, formatting and header checks passed. The negative controls observed completion at 99 ms with a shorter deadline, or no completion at 100 ms if the peer acknowledgement restarted the budget. References: RFC 6455 Sections 5.5.1 and 7.1.1, and the distinct single-phase client timeout coverage in apache#1642.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The existing integration test covers a normal WebSocket closing handshake, but its wall-clock window does not pin the deadline shared by the two client closing phases.
Modification
Use the manual scheduler in a native frame output test. Start an ordinary closing handshake, acknowledge it from the peer halfway through the wait, and confirm the client stage has consumed the acknowledgement. Keep the transport open and verify that output completes at the original deadline after sending a single Close frame. No production changes. This is separate from the client timeout coverage in #1642.
Result
The test detects a timeout budget restarted by the acknowledgement, as well as premature completion.
Tests
References
RFC 6455 §5.5.1 and §7.1.1.