-
Notifications
You must be signed in to change notification settings - Fork 114
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
HessianCodec包头长度检查异常 #156
Comments
你的请求包头是小于16字节的?我看dubbo协议头部都已经大于16了,你收到请求包有问题 |
收到的请求包没有问题,但是被分包了,比如说tcp收到的数据长度为200,200这个数据中有一个190长度的包,这个包解包没有问题,但是剩下的10长度的数据会被传到这个函数里解包,然后就会报错,导致这个会话就直接报错退出了 |
@witkeysa what you said is right. |
@witkeysa I have reopen dubbo-go issue apache/dubbo-go#380 and submit pr apache/dubbo-go#381. so I will close this issue. [sorry Let u close issue 380 before.] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这一段会检查长度是否大于包头长度。由下面这段调用。
但是在bufio.NewReaderSize(buf, buf.Len())中
这里创建出的reader长度永远大于16.导致包头分包时,解包异常。
The text was updated successfully, but these errors were encountered: