Revert "Set `suppressCancel=true` in `Mono.fromFuture`"

This reverts commit 8348263fab.
This commit is contained in:
Chris Eager 2023-09-07 16:59:17 -05:00
parent 94b41d3a2c
commit 29ca544c95
1 changed files with 1 additions and 4 deletions

View File

@ -361,10 +361,7 @@ public class WebSocketConnection implements MessageAvailabilityListener, Displac
.limitRate(MESSAGE_PUBLISHER_LIMIT_RATE)
.flatMapSequential(envelope ->
Mono.fromFuture(() -> sendMessage(envelope)
.orTimeout(sendFuturesTimeoutMillis, TimeUnit.MILLISECONDS),
// suppressCancel=true, because attempting to cancel the future has no effect, other than
// causing dropped errors
true)
.orTimeout(sendFuturesTimeoutMillis, TimeUnit.MILLISECONDS))
.onErrorResume(
// let the first error pass through to terminate the subscription
e -> {