deployed 1.0.2.RELEASE 增加异常断开连接的详细错误日志

master
剑器近 2020-12-03 16:35:39 +08:00
parent 83253f8fed
commit 6fa7ee97ef
3 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.yezhihao</groupId>
<artifactId>netmc</artifactId>
<version>1.0.1.RELEASE</version>
<version>1.0.2.RELEASE</version>
<packaging>jar</packaging>
<name>Netmc</name>

View File

@ -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

View File

@ -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;
}