**[Rob Winch](https://jira.spring.io/secure/ViewProfile.jspa?name=rwinch)** opened **[SPR-12215](https://jira.spring.io/browse/SPR-12215?redirect=false)** and commented This seems to be related to the fact that [StompSubProtocolHandler.createDisconnectMessage](https://github.com/spring-projects/spring-framework/blob/d3ea2420852dc06d9ff9c21711749126163d8b57/spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java#L465) does not set the user as [handleMessageFromClient](https://github.com/spring-projects/spring-framework/blob/d3ea2420852dc06d9ff9c21711749126163d8b57/spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java#L228) does. Disconnect Message Headers ``` simpMessageType=DISCONNECT, stompCommand=DISCONNECT, simpSessionAttributes={httpSession.id=873A1B90ECB3370ECBC1F51E01DAB6E2}, simpSessionId=6 ``` Connection Message Headers ``` simpMessageType=CONNECT, stompCommand=CONNECT, nativeHeaders={accept-version=[1.1,1.0], heart-beat=[10000,10000]}, simpSessionAttributes={httpSession.id=873A1B90ECB3370ECBC1F51E01DAB6E2}, simpUser= ..., simpSessionId=6 ``` --- **Affects:** 4.1 GA **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/4af98515853ad7e20eb90cacfaef8aecb1a81862