From 55f1b26ae223aad1fde1436f65f2368d0da6cd8e Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 20 Feb 2013 07:34:18 +1100 Subject: [PATCH] This is what I call the balancing game - use 2 NIO threads --- CraftBukkit-Patches/0025-Netty.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0025-Netty.patch b/CraftBukkit-Patches/0025-Netty.patch index 7005cb1f6..5e70a9f1d 100644 --- a/CraftBukkit-Patches/0025-Netty.patch +++ b/CraftBukkit-Patches/0025-Netty.patch @@ -1,4 +1,4 @@ -From 3e4a0e2c62d94464f212de966089589d34eb6f2f Mon Sep 17 00:00:00 2001 +From ec5dafb9483f9548b702c382eebf8c2051663531 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 14 Feb 2013 17:32:20 +1100 Subject: [PATCH] Netty @@ -487,7 +487,7 @@ index 0000000..0edb062 +} diff --git a/src/main/java/org/spigotmc/netty/NettyServerConnection.java b/src/main/java/org/spigotmc/netty/NettyServerConnection.java new file mode 100644 -index 0000000..459919a +index 0000000..b6c2db7 --- /dev/null +++ b/src/main/java/org/spigotmc/netty/NettyServerConnection.java @@ -0,0 +1,106 @@ @@ -547,7 +547,7 @@ index 0000000..459919a + .addLast("encoder", new PacketEncoder()) + .addLast("manager", new NettyNetworkManager()); + } -+ }).group(new NioEventLoopGroup(1, new ThreadFactoryBuilder().setNameFormat("Netty IO Thread - %1$d").build())).localAddress(host, port).bind(); ++ }).group(new NioEventLoopGroup(2, new ThreadFactoryBuilder().setNameFormat("Netty IO Thread - %1$d").build())).localAddress(host, port).bind(); + } + + /**