Ensure concurrent WebSocketSession wrapper is used
Issue: SPR-13326
This commit is contained in:
parent
257cc63141
commit
7defbfc18b
|
@ -309,9 +309,12 @@ public class SubProtocolWebSocketHandler implements WebSocketHandler,
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
|
public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
|
||||||
|
WebSocketSessionHolder holder = this.sessions.get(session.getId());
|
||||||
|
if (holder != null) {
|
||||||
|
session = holder.getSession();
|
||||||
|
}
|
||||||
SubProtocolHandler protocolHandler = findProtocolHandler(session);
|
SubProtocolHandler protocolHandler = findProtocolHandler(session);
|
||||||
protocolHandler.handleMessageFromClient(session, message, this.clientInboundChannel);
|
protocolHandler.handleMessageFromClient(session, message, this.clientInboundChannel);
|
||||||
WebSocketSessionHolder holder = this.sessions.get(session.getId());
|
|
||||||
if (holder != null) {
|
if (holder != null) {
|
||||||
holder.setHasHandledMessages();
|
holder.setHasHandledMessages();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue