We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RequestNettyPBDecoder 类的 decode() 在半包读取时出现 opcode 丢失问题。 问题原因是 ByteBuf#readableBytes() 满足 headSize 长度但不满足消息体时,也就是
if (size > readAble - headSize) { return; }
代码段,在下次读取剩余半包时消息体正常读取,但 opcode 和 id 是局部变量而不是方法变量导致为 0,最后抛出 MMException
The text was updated successfully, but these errors were encountered:
No branches or pull requests
RequestNettyPBDecoder 类的 decode() 在半包读取时出现 opcode 丢失问题。
问题原因是 ByteBuf#readableBytes() 满足 headSize 长度但不满足消息体时,也就是
代码段,在下次读取剩余半包时消息体正常读取,但 opcode 和 id 是局部变量而不是方法变量导致为 0,最后抛出 MMException
The text was updated successfully, but these errors were encountered: