Skip to content

Handle WebSocket messages after MVC session closed#1451

Open
DragonFSKY wants to merge 1 commit into
spring-projects:mainfrom
DragonFSKY:gh-1449-handle-closed-websocket-session
Open

Handle WebSocket messages after MVC session closed#1451
DragonFSKY wants to merge 1 commit into
spring-projects:mainfrom
DragonFSKY:gh-1449-handle-closed-websocket-session

Conversation

@DragonFSKY
Copy link
Copy Markdown

This PR updates the MVC GraphQlWebSocketHandler to ignore text messages received after the WebSocket session state has already been removed during connection close.

It also adds a regression test for a message received after afterConnectionClosed.

Closes gh-1449

Tests: ./gradlew :spring-graphql:test :spring-graphql:checkstyleMain :spring-graphql:checkstyleTest

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 4, 2026
Ignore text messages received after the MVC WebSocket session state has already been removed during connection close.

Closes spring-projectsgh-1449

Signed-off-by: dragonfsky <dragonfsky@gmail.com>
@DragonFSKY DragonFSKY force-pushed the gh-1449-handle-closed-websocket-session branch from f1eb2d2 to c187632 Compare May 13, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

# Race condition in GraphQlWebSocketHandler.getSessionInfo() causes IllegalArgumentException error logging

2 participants