Skip to content

Fail WebSocket writes after close with HttpClosedException (5.2) - #6450

Merged
vietj merged 1 commit into
eclipse-vertx:5.2from
ninadsutrave:websocket-write-closed-exception-5.2
Oct 20, 2026
Merged

vietj merged 1 commit into
eclipse-vertx:5.2from
ninadsutrave:websocket-write-closed-exception-5.2

Conversation

@ninadsutrave

Copy link
Copy Markdown
Contributor

Backport of #6449 to 5.2.

Fixes #5221

Writing to a closed WebSocket failed with a plain NoStackTraceThrowable,
so callers could only detect it by matching the message. Use
HttpClosedException instead, keeping the same message.

Fixes eclipse-vertx#5221

Signed-off-by: Ninad Sutrave <ninadsutrave@gmail.com>
@vietj vietj added this to the 5.2.2 milestone Oct 20, 2026
@vietj
vietj merged commit 66a1004 into eclipse-vertx:5.2 Oct 20, 2026
8 checks passed
@vietj vietj added the bug label Oct 20, 2026
@ninadsutrave
ninadsutrave deleted the websocket-write-closed-exception-5.2 branch October 21, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants