users@glassfish.java.net

Re: Gzip encoding

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 22 Sep 2008 10:47:33 -0400

Salut,

Patrick Julien wrote:
> I've been able to get gzip encoding to work but the server performs the
> gzip compression if and only if the port is specified.
>
> I have glassfish v2ur2 on Linux. The http listener is on port 8080 and
> I'm using iptables to redirect port 80 to port 8080 in order to avoid
> running glassfish as root.
>
> Now, if I access the server by http://x.y.z.w:8080, the http response is
> encoded with gzip. Accessing the server with only http://x.y.z.w
> however I get a response that isn't encoded with gzip.
>
> Must something specific be done in the configuration of the http
> listener here or is this a bug?

Can you add the following property and send back the result when you
send http://x.y.z.w?

-Dcom.sun.enterprise.web.connector.grizzly.enableSnoop=true

I suspect some headers are lost and that compression algorithm doesn't
apply.

Thanks

-- Jeanfrancois


>
> --
> http://www.spectrumdt.com
> http://codepimps.org
>