Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] gzip filter not being applied in some cases

Hi,

I'm experiencing an issue using the GZip filter, which doesn't get applied when the response is larger.
It looks a lot like the description of bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=354014
I'm using jetty 7.5.4, where that bug is fixed.

Debugging through the jetty code, I saw this decision being made:

(GzipResponseWrapper line 213)
if (!isCommitted()){
  noGzip();
}

I was wondering, shouldn't it be other way around? if the response is already commited, then it's too late to gzip it
PS: this code has slightly changed on latest version of Jetty, it's now in CompressedResponseWrapper line 185 but the logic is the same.

Thanks,
Eduard



Back to the top