My server stops serving after some connections and I would like to increase the 
number of threads.


try
{
  Server server = new Server(Protocol.HTTP, m_iPort, 
     ContentProvider.class);
  server.start();
}
catch (Exception e)
{
  e.printStackTrace();
}

This line below would return a null Context object
getContext().getParameters().add("maxThreads", "512"); 

Does anyone have an example or solution?

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

Reply via email to