[SPR-16861] Spring WebSocket: Indicate Stomp disconnect event would be executed twice Created: 22/May/18  Updated: 15/Jan/19  Resolved: 24/May/18

Status: Closed
Project: Spring Framework
Component/s: Messaging:WebSocket
Affects Version/s: 4.3.17, 5.0.5
Fix Version/s: 4.3.18, 5.0.7, 5.1 RC1

Type: Task Priority: Minor
Reporter: Manuel Jordan Assignee: Rossen Stoyanchev
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Reference URL: https://stackoverflow.com/questions/31634973/stomp-disconnects-its-processing-twice-in-channel-interceptor-and-simplebrokerme
Days since last comment: 5 weeks ago
Last commented by a User: true
Last updater: Spring Issuemaster

 Description   

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.



 Comments   
Comment by Spring Issuemaster [ 14/Jan/19 ]

The Spring Framework has migrated to GitHub Issues. This issue corresponds to spring-projects/spring-framework#21400.

Generated at Tue Feb 19 19:04:51 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.