Skip to content
Snippets Groups Projects
Commit 16a9f457 authored by xiejiajun's avatar xiejiajun
Browse files

bug fix: getty RpcServerPackageHandler decode tcp pkg failed because of the...

bug fix: getty RpcServerPackageHandler decode tcp pkg failed because of the body buffer is smaller than the size marked  by header
parent 20a09d3e
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,6 @@ func (p *RpcServerPackageHandler) Read(ss getty.Session, data []byte) (interface
req, length, err := (p.server.codec).Decode(data)
//resp,len, err := (*p.).DecodeResponse(buf)
if err != nil {
// bug fix
err = perrors.Cause(err)
if err == hessian.ErrHeaderNotEnough || err == hessian.ErrBodyNotEnough {
return nil, 0, nil
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment