// NETTY
channelFactory =
new NioServerSocketChannelFactory(
Executors.newCachedThreadPool(new DaemonThreadFactory("SocketMaster")),
Executors.newCachedThreadPool(new DaemonThreadFactory("SocketSlave")));
netty = new ServerBootstrap(channelFactory);
// Set up the event pipeline factory.
netty.setPipelineFactory(new NettyHttpPipelineFactory(inputPipeline, openChannels));