mrsuhx

Results 2 comments of mrsuhx

感谢作者回复,具体应该是在NettyTcpClient和NettyClientHandler这两个地方捕获到了异常,原因是客户端的onMessageResponseClient方法里有发生异常情况 ![client](https://user-images.githubusercontent.com/16317035/71453100-819f5e80-27c4-11ea-83b3-022501d49c2a.png) ![handler](https://user-images.githubusercontent.com/16317035/71453119-93810180-27c4-11ea-9d18-a600539ab5c2.png)

感谢作者回复 1. 是在方法channelRead0里的listener.onMessageResponseClient(msg, index)用try catch捕获一下异常吗? 2. 想请教一下NettyClientHandler中的exceptionCaught是socket连接中全局有异常就会触发吗? 3. NettyTcpClient中像我那样注释代码正确吗,会不会影响netty的断线重连机制?