Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17306

WebSocketSession#close never emit when using ReactorHttpServer

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0.9
    • Fix Version/s: 5.0.11, 5.1.2
    • Component/s: Reactive
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Given the following handler snippet,

      @Override
      public Mono<Void> handle(WebSocketSession session) {
        return session.send(Flux.error(new Throwable())
            .onErrorResume(e -> session.close(CloseStatus.GOING_AWAY))
            .then(Mono.empty()));
      }
      

      when using ReactorHttpServer, the Mono from session#close never emit.

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            SolaDev Sola
            Last updater:
            Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 2 weeks ago