dev@grizzly.java.net

disable keepalive on gws

From: rama <rama.rama_at_tiscali.it>
Date: Wed, 4 Nov 2009 21:21:46 +0100

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 :)