-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventSource does not work with GzipHandler #4317
Comments
Interesting. Have you captured the traffic with Wireshark to see if it's a flush issue or a decompression issue? |
I tried that now, but my Wireshark-skills are not good enough. |
This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We have reproduced it with JaxRs SSE Simplest client
According to Wireshark client receives a reply
And after that... silence. Actually if server gets stopped, stuck event messages get delivered! Seems like |
The event stream should probably flush after each send. I'm reluctant to exclude the mimetype by default as that would preclude implementations that do flush |
But it actually does flush |
Then that definitely is a bug. However I do recall some recent work on the gzip handler, so could you try upgrading jetty (your version is it and there are some security update you should have) |
Unfortunately issue is still reproduced on 9.4.40.v20210413 |
@lglowania @rymsha you need to configure the Use the Let me know if this fixes the issue for you. |
Yes, it works. One suggestion though: |
For JaxRS setting |
So maybe we do need to change the We could add another |
Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
Issue #4317 - exclude text/event-stream MIME type from GzipHandler
Jetty version
9.4.22.v20191022
Java version
11
OS type/version
Ubuntu
Description
When you enable gzip-module, the EventSource-mechanism does not work. Chrome and FF simply don't receive events. Hard to find the problem. As they send 'accept-encoding: gzip', i think it should be possible to make it work with gzip? But for now it would be better to make
text/event-stream
default-excluded in here:The text was updated successfully, but these errors were encountered: