users@grizzly.java.net

Re: Flushing output in http server

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 23 May 2008 11:26:55 -0400

Salut,

Peter Speck wrote:
> On 22/05/2008, at 22:40, Jeanfrancois Arcand wrote:
>
>> Grizzly buffer the bytes before flushing them to avoid unnecessary
>> network operations. To achieve what you need, just do the following
>> after the doWrite:
>>
>> response.action(ActionCode.ACTION_CLIENT_FLUSH,response);
>
>
> That helped! Thanks.
>
> I used this instead of the small buffer as I combine output into bigger
> chunks and then flushes the output every 0.1 second (it's a proxy server).

I see. A Grizzly based Proxy Server is something a lot of peoples are
looking at. If one day you want (or your company want :-)) to OSS it,
ping us as we will be really interested to have in under the Grizzly
umbrella....(OK I'm acting like a marketing guy :-))

Thanks!

-- Jeanfrancois



>
> ----
> - Peter Speck
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>