mirror of
https://git.krews.org/morningstar/nitrowebsockets-for-ms
synced 2024-11-22 15:00:52 +01:00
Merge branch 'hotfix-ping' into 'master'
update ping handler -- fixes cloudflare timeout See merge request nitro/ms-websockets!3
This commit is contained in:
commit
c5566e11be
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>org.krews.plugin.nitro</groupId>
|
||||
<artifactId>NitroWebsockets</artifactId>
|
||||
<version>2.0</version>
|
||||
<version>3.0</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user