users@grizzly.java.net

Re: CometWriter assumes Transfer-Encoding: chunked

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Thu, 21 Jan 2010 10:59:57 +0100

Hi Richard,

> CometWriter assumes that the HTTP response is using "Transfer-
> Encoding: chunked".
>
> In some cases Glassfish decides to respond with "Connection: close"
> where the user agent detects the end of the HTTP response from the
> connection closing rather than using HTTP keep alive and chunking .
Can you pls. elaborate? Not sure I understand why "Connection: close"
causes issue?

Thank you.

WBR,
Alexey.


>
> Looking at the code there is no way to configure this.
>
> Shall I raise this as a bug?
>
> From Richard.