Skip to content

test: cover per-frame WebSocket client masking - #1894

Open
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:test/websocket-client-mask-per-frame
Open

He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:test/websocket-client-mask-per-frame

Conversation

@He-Pin

@He-Pin He-Pin commented Nov 29, 2026

Copy link
Copy Markdown
Member

Motivation

Existing masking tests cover a single frame or the mask transform in isolation. They do not pin the client asking its mask generator separately for consecutive outgoing frames.

Modification

Send two valid binary messages through the existing WebSocket client test fixture. Supply two deterministic keys, then assert two literal encoded frames and one generator call per frame.

Result

No production changes. The named MessageSpec test passed locally on JDK 21 and Scala 2.13.18 (1/1); the module formatter check passed. This test does not assess random-source quality.

References

RFC 6455 §5.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant