Upgrade to Reactor Bismuth snapshots
Towards SR13 to confirm fix for SPR-17306.
This commit is contained in:
@@ -70,8 +70,7 @@ public class ReactorNettyWebSocketSession
|
||||
|
||||
@Override
|
||||
public Mono<Void> close(CloseStatus status) {
|
||||
WebSocketFrame closeFrame = new CloseWebSocketFrame(status.getCode(), status.getReason());
|
||||
return getDelegate().getOutbound().sendObject(closeFrame).then();
|
||||
return getDelegate().getOutbound().sendClose(status.getCode(), status.getReason());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -197,7 +197,10 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests
|
||||
|
||||
@Override
|
||||
public Mono<Void> handle(WebSocketSession session) {
|
||||
return Flux.never().mergeWith(session.close(CloseStatus.GOING_AWAY)).then();
|
||||
return session.send(Flux
|
||||
.error(new Throwable())
|
||||
.onErrorResume(ex -> session.close(CloseStatus.GOING_AWAY)) // SPR-17306 (nested close)
|
||||
.cast(WebSocketMessage.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user