netty容易犯的错误

1、ChannelHandlerAdapter handler是非线程安全的
2、channelRead、channelReadComplete 不是1:1配对的
   从buffer中可能要多n读次,才有一次Complete
 

猜你喜欢

转载自lizhensan.iteye.com/blog/2307792
今日推荐