Skip to content

Spring WebSocket: Indicate Stomp disconnect event would be executed twice [SPR-16861] #21400

@spring-projects-issues

Description

@spring-projects-issues

Manuel Jordan opened SPR-16861 and commented

I am working with spring websocket, but with a true broker. It with ActiveMQ.

Through my custom ChannelInterceptorAdapter. I have confirmed that the STOMP disconnect event is triggered twice when I close the connection manually from the client (Web Browser). (Apart: some times, very rarely, for the other two events Connect and Connected this same behavior happens, again very rarely)

According with the replies of Sergy and Rossen it is normal or is expected in someway. It without matter if is handled that event through either ChannelInterceptorAdapter or SessionDisconnectEvent.

Consider in add a special note about this behaviour in the current reference documentation.
Perhaps in the 4.4.14. Events and Interception section. Where these classes appears together.


Affects: 4.3.17, 5.0.5

Reference URL: https://stackoverflow.com/questions/31634973/stomp-disconnects-its-processing-twice-in-channel-interceptor-and-simplebrokerme

Referenced from: commits c44de3c

Backported to: 4.3.18

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions