Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 6.1.5
-
Fix Version/s: None
-
Component/s: Servlet
-
Labels:None
-
Environment:JDK1.5.12, Jetty6.15
-
Number of attachments :
Description
Source of GzipFilter.java:
-----------------------------------------------------------------line 127------------------------------------------------
GZIPResponseWrapper wrappedResponse=newGZIPResponseWrapper(request,response);
boolean exceptional=true;
try
finally
{
if (exceptional && !response.isCommitted())
else
wrappedResponse.finish();
}
-------------------------------------------------------------------------------
When suspend RetryContinuation, throw a RetryRequest RuntimeException.The exceptional of GzipFilter will be "true".
So, " wrappedResponse.noGzip();" always invoked. When we resume the Continuation and write out content, the GzipFilter already disabled.
The noGzip does not persist to the retry?
If you run the standard jetty test webapp and hit:
http://localhost:8080/test/dump/info?continue=1000
you will see that the response is gzipped AFTER a suspend of 1000 ms.
So there must be something else about your response that means it does not get compressed.
Is it above minimum size?