dev@grizzly.java.net

Re: disable keepalive on gws

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 04 Nov 2009 15:45:56 -0500

Salut,

Justin is tracking me on a similar issue all the weeks :-) I will take a
look asap :-)

A+

-- jeanfrancois

rama wrote:
> hi all,
>
> it's possible to disable keepalive on a gws?
>
> i have try
> s.getSelectorThread().setKeepAliveTimeoutInSeconds(0);
> s.getSelectorThread().setMaxKeepAliveRequests(0);
>
> but without any success :)
>
> here is a snippet
>
>
> ----------------------------------------------------
> public class ws extends GrizzlyWebServer
> {
>
> public static void main (String args[]) {
> ws s = new ws();
> s.getSelectorThread().setKeepAliveTimeoutInSeconds(0);
> s.getSelectorThread().setMaxKeepAliveRequests(0);
> s.getSelectorThread().setDisplayConfiguration(true);
> try {
> s.start();
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> ----------------------------------------------------
> wget -v -S http://localhost:8080/index.html
> --2009-11-04 21:19:30-- http://localhost:8080/index.html
> Risoluzione di localhost... 127.0.0.1, ::1, fe80::1
> Connessione a localhost|127.0.0.1|:8080... connesso.
> HTTP richiesta inviata, in attesa di risposta...
> HTTP/1.1 404 Not Found
> Content-Type: text/html
> Content-Length: 701
> Date: Wed, 04 Nov 2009 20:19:30 GMT
> Connection: Keep-Alive --> :( sigh
> 2009-11-04 21:19:30 ERRORE 404: Not Found.
>
>
>
> Unfortunatly i haven't find nothing on docs about that :)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>