mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
9140ed6fa9
Prior to this commit, `SseServerResponse.send()` would flush the output stream returned by `getBody()`. Since gh-36385, `ServletServerHttpResponse` wraps this stream with a non-flushing decorator to avoid performance issues with `HttpMessageConverter` implementations that flush excessively. As a result, SSE events were no longer flushed to the client. This commit changes `send()` to call `outputMessage.flush()` instead of `body.flush()`, which properly delegates to the servlet response `flushBuffer()` and is not affected by the non-flushing wrapper. Fixes gh-36537