Skip to content

Handle WebSocket messages after MVC session closed#1451

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

Handle WebSocket messages after MVC session closed#1451
DragonFSKY wants to merge 1 commit intospring-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

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>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 4, 2026
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