-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
The way that ReadCancellationException
is used in BodyExtractors
is apparently meant to be an implementation detail:
Lines 269 to 273 in 1bff7ce
.map(buffer -> { | |
DataBufferUtils.release(buffer); | |
throw new ReadCancellationException(); | |
}) | |
.onErrorResume(ReadCancellationException.class, ex -> Mono.empty()) |
However, if somewhere downstream in the pipeline an
onErrorContinue
operator is appended, the exception does surface which caused me some confusion. Could this be implemented differently without throwing an exception?Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug