Skip to content

Mono from sendWebSocket completes at the end of the session #393

@rstoyanchev

Description

@rstoyanchev

Not sure 100% if this is an issue or expected behavior but according to the Javadoc for HttpServerResponse#sendWebSocket it returns "a Mono completing when upgrade is confirmed". Instead the Mono seems to complete only after WebSocket session handling completes.

This comes through an issue reported against Spring Session and then the Spring Framework https://jira.spring.io/browse/SPR-17051 where a WebSocket handshake request completes at the end of the WebSocket connection (i.e. much later) and saves an already invalidated WebSession causing havoc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions