Skip to content

Websocket broker disconnects when client enable heartbeats #27503

Closed as not planned
@rd-o

Description

@rd-o

After a spring boot websocket client connects to the websocket spring boot server, the server send some heartbeats, and then after some minutes in the trace logs shows "Connection to broker closed.". Removing setTaskScheduler() from the client seems to work without problems.

Websocket client with SockJsClient and heartbeats enabled.
Websocket server with enableStompBrokerRelay() (ActiveMQ) and withSockJS()

Here a POC with the client and server, it needs a ActiveMQ broker:
https://github.com/rd-o/websocket-spring-boot-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions