users@glassfish.java.net

Re: Gzip encoding

From: Patrick Julien <pjulien_at_spectrumdt.com>
Date: Mon, 22 Sep 2008 12:16:16 -0400

The only difference I see is that the host has the port appended when I
specify the port on the client end. Here, the IP correctly has the port but
the host header doesn't.

On Mon, Sep 22, 2008 at 12:02 PM, Patrick Julien <pjulien_at_spectrumdt.com>wrote:

>
> [#|2008-09-22T10:58:19.459-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-0;|SocketChannel
> headersjava.nio.channels.SocketChannel[connected local=/72.3.236.85:8080remote=/
> 70.53.186.38:60471] are: === MimeHeaders ===
> host = services00.spectrumdt.com
> connection = close
> authorization = Basic /*Removed*/
> user-agent = Profile/MIDP-2.0 Configuration/CLDC-1.1
> content-language = en
> accept = application/json
> accept-encoding = gzip
>
> The accept-encoding is still there, however, the payload is indeed json
> instead of gzip compressed json. Adding the port, I get compressed json.
>
>
>
>
>
> On Mon, Sep 22, 2008 at 11:53 AM, Jeanfrancois Arcand <
> Jeanfrancois.Arcand_at_sun.com> wrote:
>
>> Salut,
>>
>> Patrick Julien wrote:
>>
>>> Yes, I can, but what is it that you want precisely? The http headers of
>>> the client? The http headers from the server response? Logs from the
>>> server?
>>>
>>> Also, if I'm not mistaken, you want this option to be set in the JVM
>>> settings of the server?
>>>
>>
>> Yes, sorry for the confusion. Send me the server.log.
>>
>> A+
>>
>> -- Jeanfrancois
>>
>>
>>
>>> On Mon, Sep 22, 2008 at 10:47 AM, Jeanfrancois Arcand <
>>> Jeanfrancois.Arcand_at_sun.com <mailto:Jeanfrancois.Arcand_at_sun.com>> wrote:
>>>
>>> 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
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>> <mailto:users-help_at_glassfish.dev.java.net>
>>>
>>>
>>>
>>>
>>> --
>>> http://www.spectrumdt.com
>>> http://codepimps.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
>
> --
> http://www.spectrumdt.com
> http://codepimps.org
>
>


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