Skip to content

test: cover WebSocket URI default ports - #1896

Open
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:test/websocket-uri-default-ports
Open

He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:test/websocket-uri-default-ports

Conversation

@He-Pin

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

Copy link
Copy Markdown
Member

Motivation

The URI model supplies implicit WebSocket ports, but the effective-port test does not check either WebSocket scheme.

Modification

Add literal assertions for the public Uri.effectivePort API with omitted ports on ws and wss.

Result

No production changes. The named UriSpec test passed on JDK 21 and Scala 2.13.18 (1/1); the scoped formatter check passed. This does not test connection establishment or TLS.

References

RFC 6455 §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