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