spring-cloud / spring-cloud-netflix

Integration with Netflix OSS components
http://cloud.spring.io/spring-cloud-netflix/
Apache License 2.0
4.87k stars 2.44k forks source link

HTML5 Server-Sent Events with SseEmitter through zuul proxy #2477

Closed matzegebbe closed 6 years ago

matzegebbe commented 6 years ago

I use zuul with spring boot 1.5.8 and spring cloud Dalston.SR4

Also I have a small spring boot project with Server Sent Events using SseEmitter. This works fine when I directly call the application.

Calling the same application through the zuul proxy is not working. The stream endpoint is opened but I get no response (not killed by a timeout)

Does sse works with zuul?

directly

https://user-images.githubusercontent.com/3482021/33031964-12c80ffc-ce20-11e7-890e-c993bfdba428.png

With zuul

https://user-images.githubusercontent.com/3482021/33032012-384f1996-ce20-11e7-86e7-d13347a06bcf.png

Or is there a way to use a prefilter to just forward all requests? My compromise solution would be a nginx in front of all services :-1:

thanks!

spencergibb commented 6 years ago

I'll refer you to the comment the maintainer of zuul made to you on a duplicate issue

https://github.com/Netflix/zuul/issues/376#issuecomment-347356803

Zuul 1.x does not support SSE.