mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Prior to this commit, calling `DefaultAsyncServerResponse.writeAsync()` would unconditionally create a new `AsyncWebRequest` and install it on the `WebAsyncManager`, even when one is already present for the current request. The functional web framework can do such a thing when returning a `ServerResponse.async(future)` from a `HandlerFunction`; the `HandlerFunctionAdapter` does install an async web request already. This means that the async timeout configured at the application level would be ignored and instead falling back to the Servlet container default. This commit makes the `DefaultAsyncServerResponse` skip async web request creation it there is an existing one. Fixes gh-37257