Browse Source
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-365377.0.x
2 changed files with 37 additions and 4 deletions
Loading…
Reference in new issue