Skip to content

WebSocketSession#close never emit when using ReactorHttpServer [SPR-17306] #21839

Closed
@spring-projects-issues

Description

@spring-projects-issues

Sola opened SPR-17306 and commented

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.
!image-2018-09-27-05-12-22-853.png|thumbnail!


Affects: 5.0.9

Attachments:

Referenced from: commits 42b7c5a, b462ca2, bf4d00c, 1320fed

Backported to: 5.0.11

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions