Skip to content

Attempt reconnect on IllegalStateException in WebSocketClientService#3804

Open
georgweiss wants to merge 1 commit into
masterfrom
fix_ws_reconnect
Open

Attempt reconnect on IllegalStateException in WebSocketClientService#3804
georgweiss wants to merge 1 commit into
masterfrom
fix_ws_reconnect

Conversation

@georgweiss
Copy link
Copy Markdown
Collaborator

@georgweiss georgweiss commented May 18, 2026

In some cases (e.g. during a debug session), the service may fail to send heartbeat messages in a timely fashion. On the client side the Spring STOMP library will close the web socket connection, in which case a reconnect thread must be started.

Interval for heartbeat messages has also been changed from 30 to 60 s to avoid disconnection when debugging server code.

  • Testing:

    • The feature has automated tests
    • [ X] Tests were run
    • If not, explain how you tested your changes
  • Documentation:

    • The feature is documented
    • The documentation is up to date
    • Release notes:
      • Added an entry if the change is breaking or significant
      • Added an entry when adding a new feature

@georgweiss georgweiss requested review from abrahamwolk and shroffk May 18, 2026 08:05
@sonarqubecloud
Copy link
Copy Markdown

threadPoolTaskScheduler.initialize();
stompClient.setTaskScheduler(threadPoolTaskScheduler);
stompClient.setDefaultHeartbeat(new long[]{30000, 30000});
stompClient.setDefaultHeartbeat(new long[]{60000, 60000});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not make this a configuration variable?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure it would make sense as it is not obvious on how to set it.

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.

2 participants