You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When returning a ReponseBodyEmitter from a controller method, the headers for the connection are not written to the stream until something is emitted. If nothing is emitted, clients timeout and think the server is unavalible.
Odd, it's not what I would expect. The ResponseBodyEmitterReturnValueHandler is invoked immediately after the controller method returns and calls getBody on ServerHttpResponse in order to commit the response. Could you provide some more details on how to reproduce the behavior you're seeing?
Run the code in this repo with ./;gradlew jettyEclipseRun and use curl to test http://localhost:4000/sse and http://localhost:4000/sse-send. You should be able to see the bug happening.
Kenzie Togami opened SPR-13341 and commented
When returning a
ReponseBodyEmitter
from a controller method, the headers for the connection are not written to the stream until something is emitted. If nothing is emitted, clients timeout and think the server is unavalible.Affects: 4.2 GA
Referenced from: commits f5210ce
The text was updated successfully, but these errors were encountered: