update ping handler -- fixes cloudflare timeout

This commit is contained in:
skeletor 2021-02-09 02:56:22 -05:00
parent aea83f4282
commit 0d68f58466
2 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<groupId>org.krews.plugin.nitro</groupId>
<artifactId>NitroWebsockets</artifactId>
<version>2.0</version>
<version>3.0</version>
<build>
<plugins>
<plugin>

View File

@ -30,9 +30,6 @@ public class NetworkChannelInitializer extends ChannelInitializer<SocketChannel>
public void initChannel(SocketChannel ch) {
ch.pipeline().addLast("logger", new LoggingHandler());
ch.pipeline().addLast("idleStateHandler", new IdleStateHandler(60, 30, 0));
ch.pipeline().addAfter("idleStateHandler", "idleEventHandler", new IdleTimeoutHandler());
if(isSSL) {
ch.pipeline().addLast(context.newHandler(ch.alloc()));
}
@ -51,6 +48,7 @@ public class NetworkChannelInitializer extends ChannelInitializer<SocketChannel>
ch.pipeline().addLast(new GameClientMessageLogger());
}
ch.pipeline().addLast("idleEventHandler", new IdleTimeoutHandler(30, 60));
ch.pipeline().addLast(new GameMessageRateLimit());
ch.pipeline().addLast(new GameMessageHandler());