spring-projects / spring-boot

Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
https://spring.io/projects/spring-boot
Apache License 2.0
75.12k stars 40.67k forks source link

SsEmitter closes response stream if Gson is used #13628

Closed hydroid7 closed 6 years ago

hydroid7 commented 6 years ago

When using SseEmitter and Gson is configured as global message converter, the response stream is closed after every update.

Demo Repository to reproduce the bug

wilkinsona commented 6 years ago

Thanks for the sample. It's using 1.3.0.M1 which was released 3 years ago. Before raising an issue, please take the time to upgrade to at least the latest minor release as the problem may have already been fixed. At the time of writing, the latest release in the 1.x line is 1.5.14.RELEASE. The problem does not occur with this version.