-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipeline版本怎么集成LengthFieldBasedFrameDecoder协议? #11
Comments
额,这个可以参考下SuperSocket的LengthFieldBasedFrameDecoder,因为808没有用到固定长度的包,这边也没有打算在808下支持多协议的骚操作。😄 |
这地方为什么要移除会话呢?SessionManager.RemoveBySessionId(session.SessionID); |
因为tcp这时候已经断开了,所以要移除掉。 |
这个实际是没有断开,只是发的数据包格式不符合数据包规范,你可以发个错误包看下 |
对呀,你都说了发了错误的包,那对于协议来说,肯定是不允许的,那只能是拒绝连接了。 |
好吧,这个现实场景也会有网络干扰吧,比如信号强度不好的地方。 |
网络问题,顶多就是断开重连,设备是有补传数据的,这都是正常的。 |
@491134648 DotNetty可以通过继承 注意: 在 最后祝君好运~ |
Pipeline版本怎么集成LengthFieldBasedFrameDecoder协议,调试代码的时候发现不是正确包的时候,抛出了相关异常,下次再发数据包时就进入了Write了,然后就断开了连接,是为什么呢?
The text was updated successfully, but these errors were encountered: