This is what I call the balancing game - use 2 NIO threads
Dieser Commit ist enthalten in:
Ursprung
d1070f3cdb
Commit
55f1b26ae2
@ -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 <md_5@live.com.au>
|
||||
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();
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren