From 6fa7ee97efea12ab0decd8d991a7be455dbad77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=91=E5=99=A8=E8=BF=91?= Date: Thu, 3 Dec 2020 16:35:39 +0800 Subject: [PATCH] =?UTF-8?q?deployed=201.0.2.RELEASE=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=96=AD=E5=BC=80=E8=BF=9E=E6=8E=A5=E7=9A=84?= =?UTF-8?q?=E8=AF=A6=E7=BB=86=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../java/io/github/yezhihao/netmc/TCPServerHandler.java | 2 +- .../github/yezhihao/netmc/core/annotation/AsyncBatch.java | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 21585a4..332439d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.github.yezhihao netmc - 1.0.1.RELEASE + 1.0.2.RELEASE jar Netmc diff --git a/src/main/java/io/github/yezhihao/netmc/TCPServerHandler.java b/src/main/java/io/github/yezhihao/netmc/TCPServerHandler.java index 8a10b96..27acb1d 100644 --- a/src/main/java/io/github/yezhihao/netmc/TCPServerHandler.java +++ b/src/main/java/io/github/yezhihao/netmc/TCPServerHandler.java @@ -90,7 +90,7 @@ public class TCPServerHandler extends ChannelInboundHandlerAdapter { @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable e) { Session session = ctx.channel().attr(Session.KEY).get(); - log.info("<<<<<终端异常断开连接" + session); + log.warn("<<<<<异常断开连接" + session, e); } @Override diff --git a/src/main/java/io/github/yezhihao/netmc/core/annotation/AsyncBatch.java b/src/main/java/io/github/yezhihao/netmc/core/annotation/AsyncBatch.java index 4f02339..37a6e62 100644 --- a/src/main/java/io/github/yezhihao/netmc/core/annotation/AsyncBatch.java +++ b/src/main/java/io/github/yezhihao/netmc/core/annotation/AsyncBatch.java @@ -12,13 +12,13 @@ import java.lang.annotation.*; @Documented public @interface AsyncBatch { - //线程数量 + /** 线程数量 */ int poolSize() default 2; - //最大累计消息数 - int maxElements() default 400; + /** 最大累计消息数 */ + int maxElements() default 4000; - //最大等待时间 + /** 最大等待时间 */ int maxWait() default 1000; } \ No newline at end of file