we need to explicitly set the connector thread pool based on the default number of threads in our config to accomodate how jetty 8 works

This commit is contained in:
fjy 2013-11-16 11:09:42 -08:00
parent 5d7173ac98
commit 60dbdcebac
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ public class JettyServerModule extends JerseyServletModule
connector.setPort(node.getPort()); connector.setPort(node.getPort());
connector.setMaxIdleTime(Ints.checkedCast(config.getMaxIdleTime().toStandardDuration().getMillis())); connector.setMaxIdleTime(Ints.checkedCast(config.getMaxIdleTime().toStandardDuration().getMillis()));
connector.setStatsOn(true); connector.setStatsOn(true);
connector.setAcceptors(config.getNumThreads());
server.setConnectors(new Connector[]{connector}); server.setConnectors(new Connector[]{connector});