RE: Using JettyServerHelper

2013-07-23 Thread Adam Mc
Found a solution to using the JettyServerHelper.  Here is some code in case 
others have similar question:

 Component component = new Component(); Server jettyServer = new 
Server(Protocol.HTTP, 8080); 
 HttpServerHelper jettyServerHelper = new HttpServerHelper(jettyServer);
 component.getServers().add(jettyServer);
 jettyServer.getContext().getParameters().add(maxThreads, 300);
 jettyServer.getContext().getParameters().add(acceptQueueSize,50); 
 component.getDefaultHost().attach(/, new RootApp());
 component.start();

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3061100


setting server's keepAlive timeout time

2013-07-23 Thread Adam Mc
Hi,

I am using the Jetty Server connector.  I am trying to set the time in which a 
keepalive will end after no activitit.  Tomcat has something called: 
keepAliveTimeout.  Can we set this feature in a Restlet standalone?

I see that there are a few parameters that might do the above.  Would setting 
maxIoIdleTimeMs set the keepAliveTimeout? Would this be roughly equivalent to 
tomcat's keepAliveTimeout?

Thanks,
-Adam

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3061104