Disconnected client exception logging should differentiate remote service exceptions too [SPR-17341] #21875
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
Rossen Stoyanchev opened SPR-17341 and commented
Currently HttpWebHandlerAdapter suppresses logging of unhandled exceptions from writing to the response that are associated with a client going away. This is useful with streaming responses and was introduced in #18523. However as is clear from #21790 similar exceptions may also occur during request handling while making calls to a remote service, and arguably logging for those should not be suppressed.
This ticket is to explore the possibility of differentiating between the two and suppressing logging only of the former, but not of the latter kind. One option may be to wrap exceptions from
ServerHttpResponse#writeWith
with something like the Reactor Netty AbortedException and use that to differentiate between server response writing and other socket exception.Affects: 5.0.9
Issue Links:
The text was updated successfully, but these errors were encountered: