users@glassfish.java.net

Re: Disabling of "Transfer-Encoding: chunked"

From: Pankaj Jairath <Pankaj.Jairath_at_Sun.COM>
Date: Wed, 20 Aug 2008 11:46:53 +0530

Hello,

Try adding the HTTP listener property "chunkingDisabled" to your server
configuration :

<property name="chunkingDisabled" value="true"/>.

You can achieve this by using the admin GUI and then traversing to the
"Configuration" and selecting configuration bound to your server
instance / cluster :

"Configuration"---><your-target-configuration>--->"HTTP
Service"--->"HTTP Listeners"--->"<select-your-listener>"---> Select "Add
Property"

OR

use the asadmin CLI :

asadmin set
<your-target-server-name>.http-service.http-listener.<your-http-listener>.property.chunkingDisabled=true

wherein substitute <your-target-server-name> : the name of your server
instance / cluster
                              <your-http-listener> : http listener over
which you want to disable/enable chunking.

On a different note, did you try using Sun WebServer 7.0 which is
available for free
(http://www.sun.com/download/products.xml?id=467713d6) and you can then
use GlassFish HTTP Load Balancer plugin or the WebServer reverse proxy
for fronting as the proxy. Chunking should work well with it.


regards
Pankaj


glassfish_at_javadesktop.org wrote:
> Can this be done? I use NGINX as a front-end for Glassfish, and Transfer-Encoding: chunked appears to not be handled very well by NGINX.
> [Message sent by forum member 'drjoke' (drjoke)]
>
> http://forums.java.net/jive/thread.jspa?messageID=294274
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>