spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.77k stars 38.16k forks source link

Add default handling for disconnected client errors to Spring MVC #33763

Closed rstoyanchev closed 1 month ago

rstoyanchev commented 1 month ago

Spring MVC has default handling for AsyncRequestNotUsableException after #33225 which is raised by our response wrapper when the response fails during an async request. However, the Servlet container may also notify via onError of the IOException, and if that gets through first, it remains unresolved, and that brings unnecessary logging.

WebFlux has default handling for disconnected client errors. We need to add similar in Spring MVC.

rstoyanchev commented 1 month ago

Fixed in 9252e741e17d2a810bf084235016692779518ecc but commit references unrelated issue.