Hi Andrea,
for entire WS you can call:
gws.getSelectorThread().setUseChunking(false);
For the concrete Request - I think it's not possible. But we can think
about adding this feature, if there is strong requirement.
WBR,
Alexey.
On May 17, 2010, at 17:55 , Andrea Gualano wrote:
> Hi all,
> how do I disable "Transfer-Encoding: chunked" for a single response
> (or
> for an entire web server) without setting the Content-Length?
>
> I need this to implement "multipart MJPEG" video streaming on top of
> Grizzly. This is a quasi-standard way of streaming video which is
> understood by most video players, but unfortunately some players do
> not
> understand a chunked response when used in this context, still they
> put
> "HTTP/1.1" in their requests.
>
> I have tried to manually set chunkingDisabled = true in the
> ServletAdapter constructor, but it seems to have no effect, i.e.
> without
> Content-Length I still get chunked response.
>
> I am using embedded GrizzlyWebServer with Comet; grizzly version is
> 1.9.18-k
>
> Best regards,
> Andrea
>
> --
> Andrea Gualano
> ImaVis S.r.l.
> email: andrea.gualano_at_imavis.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>