mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
ae7891e797
A disconnected client error does not necessarily prevent us from setting the status of the WebFlux ServerHttpResponse, which is only gated by a committed flag and does not necessarily reflect the connection state. This is why we need to check if we have a disconnected client error first and handle it accordingly. We still set the response to 500 in case the disconnect client error is to a remote host in which case it will propagate to the client. Closes gh-36811