处理一个netty异常

AM io.netty.channel.DefaultChannelPipeline$TailContext exceptionCaught

WARNING: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.


处理方式:
     处理业务的handler里面增加

public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {  
        ctx.close();  
    }


猜你喜欢

转载自blog.csdn.net/y_y_y_k_k_k_k/article/details/75285799