mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
limit workers to 2
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user