diff --git a/example/src/main/java/io/netty/example/applet/AppletDiscardServer.java b/example/src/main/java/io/netty/example/applet/AppletDiscardServer.java index 77aa671cca..fac2276e6f 100644 --- a/example/src/main/java/io/netty/example/applet/AppletDiscardServer.java +++ b/example/src/main/java/io/netty/example/applet/AppletDiscardServer.java @@ -41,7 +41,7 @@ public class AppletDiscardServer extends JApplet { @Override public void init() { - bossGroup = new NioEventLoopGroup(); + bossGroup = new NioEventLoopGroup(1); workerGroup = new NioEventLoopGroup(); try { ServerBootstrap bootstrap = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/discard/DiscardServer.java b/example/src/main/java/io/netty/example/discard/DiscardServer.java index 992a3dbc1a..ca253572ae 100644 --- a/example/src/main/java/io/netty/example/discard/DiscardServer.java +++ b/example/src/main/java/io/netty/example/discard/DiscardServer.java @@ -35,7 +35,7 @@ public class DiscardServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/echo/EchoServer.java b/example/src/main/java/io/netty/example/echo/EchoServer.java index 55d8d6b48a..8c85b58eff 100644 --- a/example/src/main/java/io/netty/example/echo/EchoServer.java +++ b/example/src/main/java/io/netty/example/echo/EchoServer.java @@ -39,7 +39,7 @@ public class EchoServer { public void run() throws Exception { // Configure the server. - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/factorial/FactorialServer.java b/example/src/main/java/io/netty/example/factorial/FactorialServer.java index 68126785c5..f21f608048 100644 --- a/example/src/main/java/io/netty/example/factorial/FactorialServer.java +++ b/example/src/main/java/io/netty/example/factorial/FactorialServer.java @@ -33,7 +33,7 @@ public class FactorialServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/filetransfer/FileServer.java b/example/src/main/java/io/netty/example/filetransfer/FileServer.java index b589c2e4df..3400092670 100644 --- a/example/src/main/java/io/netty/example/filetransfer/FileServer.java +++ b/example/src/main/java/io/netty/example/filetransfer/FileServer.java @@ -50,7 +50,7 @@ public class FileServer { public void run() throws Exception { // Configure the server. - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/http/cors/HttpServer.java b/example/src/main/java/io/netty/example/http/cors/HttpServer.java index 249d6fd2e3..631e13c3b6 100644 --- a/example/src/main/java/io/netty/example/http/cors/HttpServer.java +++ b/example/src/main/java/io/netty/example/http/cors/HttpServer.java @@ -75,7 +75,7 @@ public class HttpServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/http/file/HttpStaticFileServer.java b/example/src/main/java/io/netty/example/http/file/HttpStaticFileServer.java index 65a25a7c48..62d426a621 100644 --- a/example/src/main/java/io/netty/example/http/file/HttpStaticFileServer.java +++ b/example/src/main/java/io/netty/example/http/file/HttpStaticFileServer.java @@ -29,7 +29,7 @@ public class HttpStaticFileServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServer.java b/example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServer.java index 9710600a53..2571b3f1a7 100644 --- a/example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServer.java +++ b/example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServer.java @@ -36,7 +36,7 @@ public class HttpHelloWorldServer { public void run() throws Exception { // Configure the server. - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/http/snoop/HttpSnoopServer.java b/example/src/main/java/io/netty/example/http/snoop/HttpSnoopServer.java index 8c605e257e..9fe0291b22 100644 --- a/example/src/main/java/io/netty/example/http/snoop/HttpSnoopServer.java +++ b/example/src/main/java/io/netty/example/http/snoop/HttpSnoopServer.java @@ -35,7 +35,7 @@ public class HttpSnoopServer { public void run() throws Exception { // Configure the server. - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java b/example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java index 510c756216..17c72aaf37 100644 --- a/example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java +++ b/example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java @@ -34,7 +34,7 @@ public class HttpUploadServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/http/websocketx/html5/WebSocketServer.java b/example/src/main/java/io/netty/example/http/websocketx/html5/WebSocketServer.java index d0697e24bf..db4072280e 100644 --- a/example/src/main/java/io/netty/example/http/websocketx/html5/WebSocketServer.java +++ b/example/src/main/java/io/netty/example/http/websocketx/html5/WebSocketServer.java @@ -58,7 +58,7 @@ public class WebSocketServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { final ServerBootstrap sb = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServer.java b/example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServer.java index 08bfe22544..840b560147 100644 --- a/example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServer.java +++ b/example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServer.java @@ -49,7 +49,7 @@ public class WebSocketServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/http/websocketx/sslserver/WebSocketSslServer.java b/example/src/main/java/io/netty/example/http/websocketx/sslserver/WebSocketSslServer.java index 75a4205703..6cca57a084 100644 --- a/example/src/main/java/io/netty/example/http/websocketx/sslserver/WebSocketSslServer.java +++ b/example/src/main/java/io/netty/example/http/websocketx/sslserver/WebSocketSslServer.java @@ -48,7 +48,7 @@ public class WebSocketSslServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/objectecho/ObjectEchoServer.java b/example/src/main/java/io/netty/example/objectecho/ObjectEchoServer.java index 2e6b852208..031b93737d 100644 --- a/example/src/main/java/io/netty/example/objectecho/ObjectEchoServer.java +++ b/example/src/main/java/io/netty/example/objectecho/ObjectEchoServer.java @@ -38,7 +38,7 @@ public class ObjectEchoServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/portunification/PortUnificationServer.java b/example/src/main/java/io/netty/example/portunification/PortUnificationServer.java index 7bddf7a805..04533918c9 100644 --- a/example/src/main/java/io/netty/example/portunification/PortUnificationServer.java +++ b/example/src/main/java/io/netty/example/portunification/PortUnificationServer.java @@ -38,7 +38,7 @@ public class PortUnificationServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/proxy/HexDumpProxy.java b/example/src/main/java/io/netty/example/proxy/HexDumpProxy.java index 05322b3764..e68ed6fc04 100644 --- a/example/src/main/java/io/netty/example/proxy/HexDumpProxy.java +++ b/example/src/main/java/io/netty/example/proxy/HexDumpProxy.java @@ -39,7 +39,7 @@ public class HexDumpProxy { remoteHost + ':' + remotePort + " ..."); // Configure the bootstrap. - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/sctp/NioSctpEchoServer.java b/example/src/main/java/io/netty/example/sctp/NioSctpEchoServer.java index 638a202ed9..a38dce6288 100644 --- a/example/src/main/java/io/netty/example/sctp/NioSctpEchoServer.java +++ b/example/src/main/java/io/netty/example/sctp/NioSctpEchoServer.java @@ -39,7 +39,7 @@ public class NioSctpEchoServer { public void run() throws Exception { // Configure the server. - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/sctp/OioSctpEchoServer.java b/example/src/main/java/io/netty/example/sctp/OioSctpEchoServer.java index 27d50b2b7e..1e036b6cb5 100644 --- a/example/src/main/java/io/netty/example/sctp/OioSctpEchoServer.java +++ b/example/src/main/java/io/netty/example/sctp/OioSctpEchoServer.java @@ -39,7 +39,7 @@ public class OioSctpEchoServer { public void run() throws Exception { // Configure the server. - EventLoopGroup bossGroup = new OioEventLoopGroup(); + EventLoopGroup bossGroup = new OioEventLoopGroup(1); EventLoopGroup workerGroup = new OioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/securechat/SecureChatServer.java b/example/src/main/java/io/netty/example/securechat/SecureChatServer.java index b157096757..14de0d4827 100644 --- a/example/src/main/java/io/netty/example/securechat/SecureChatServer.java +++ b/example/src/main/java/io/netty/example/securechat/SecureChatServer.java @@ -33,7 +33,7 @@ public class SecureChatServer { } public void run() throws InterruptedException { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/socksproxy/SocksServer.java b/example/src/main/java/io/netty/example/socksproxy/SocksServer.java index ca11e38d62..d196a14762 100644 --- a/example/src/main/java/io/netty/example/socksproxy/SocksServer.java +++ b/example/src/main/java/io/netty/example/socksproxy/SocksServer.java @@ -30,7 +30,7 @@ public final class SocksServer { public void run() throws Exception { System.err.println( "Listening on*:" + localPort + "..."); - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/spdy/server/SpdyServer.java b/example/src/main/java/io/netty/example/spdy/server/SpdyServer.java index abf1be2bb5..64dce6a778 100644 --- a/example/src/main/java/io/netty/example/spdy/server/SpdyServer.java +++ b/example/src/main/java/io/netty/example/spdy/server/SpdyServer.java @@ -50,7 +50,7 @@ public class SpdyServer { public void run() throws Exception { // Configure the server. - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/telnet/TelnetServer.java b/example/src/main/java/io/netty/example/telnet/TelnetServer.java index d69da7a308..eddc9f4d4f 100644 --- a/example/src/main/java/io/netty/example/telnet/TelnetServer.java +++ b/example/src/main/java/io/netty/example/telnet/TelnetServer.java @@ -32,7 +32,7 @@ public class TelnetServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap(); diff --git a/example/src/main/java/io/netty/example/worldclock/WorldClockServer.java b/example/src/main/java/io/netty/example/worldclock/WorldClockServer.java index 61dc3be478..af47fd55f2 100644 --- a/example/src/main/java/io/netty/example/worldclock/WorldClockServer.java +++ b/example/src/main/java/io/netty/example/worldclock/WorldClockServer.java @@ -33,7 +33,7 @@ public class WorldClockServer { } public void run() throws Exception { - EventLoopGroup bossGroup = new NioEventLoopGroup(); + EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); try { ServerBootstrap b = new ServerBootstrap();