one worker thread is enough

This commit is contained in:
Eugene Zhuravlev
2012-11-26 17:49:06 +01:00
parent 208ca46809
commit 4fc05d4baa
@@ -892,7 +892,7 @@ public class BuildManager implements ApplicationComponent{
}
private int startListening() throws Exception {
final ChannelFactory channelFactory = new NioServerSocketChannelFactory(myPooledThreadExecutor, myPooledThreadExecutor, 2);
final ChannelFactory channelFactory = new NioServerSocketChannelFactory(myPooledThreadExecutor, myPooledThreadExecutor, 1);
final SimpleChannelUpstreamHandler channelRegistrar = new SimpleChannelUpstreamHandler() {
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
myAllOpenChannels.add(e.getChannel());