limit workers to 2

This commit is contained in:
Alexey Kudravtsev
2012-09-06 18:31:11 +04:00
parent 47d55ea4e9
commit 2d1e9fc549
@@ -29,7 +29,7 @@ public class WebServer {
public WebServer() {
ExecutorService executor = Executors.newCachedThreadPool();
channelFactory = new NioServerSocketChannelFactory(executor, executor);
channelFactory = new NioServerSocketChannelFactory(executor, executor, 2);
}
public boolean isRunning() {