users@grizzly.java.net

Re: SelectorThread.setCompression("on");

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Mon, 11 Feb 2008 19:20:18 +0100

You're typing very fast :)

Please try to set also compressable mime type, if you have one not in
set: text/html,text/xml,text/plain.
Also, to make sure it's a bug - set

st.setCompression("force");

WBR,
Alexey.

Alan Williamson wrote:
>> Hence if your client add the accept-encoding: gzip, compression
>> should starts. If that's not the case, then we have a bug :-)
>
> then we may have a bug!
>
> i can't get a GZIP respoonse out no matter what i throw at it.
>
> so with my code, it should be triggering the
> com.sun.grizzly.http.DefaultProcessorTask class, even though, i am doing:
> ____________________________
>
> SelectorThread st = new SelectorThread();
> ByteBufferInputStream.setDefaultReadTimeout( 30000 );
>
> st.setPort(serverPort);
> st.setAdapter(this);
>
> st.setMaxKeepAliveRequests(keepAliveRequests);
> st.setKeepAliveTimeoutInSeconds(keepAliveTimeOut);
>
> st.setCompression("on");
> st.setCompressionMinSize(gzipThreshold);
> ____________________________
>
> and then sending out my own response by overriding:
>
> public void service(Request req, Response res) throws Exception {
>
> }
>
> yes?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>