From 9754b66910b54e07ee4fbbd5e8ee933cc2ae2419 Mon Sep 17 00:00:00 2001 From: fangyincheng <fangyincheng@sina.com> Date: Sun, 5 Jan 2020 22:49:24 +0800 Subject: [PATCH] add notes --- protocol/dubbo/codec.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol/dubbo/codec.go b/protocol/dubbo/codec.go index 4e7e5ec0a..6b41d5e7d 100644 --- a/protocol/dubbo/codec.go +++ b/protocol/dubbo/codec.go @@ -90,6 +90,8 @@ func (p *DubboPackage) Unmarshal(buf *bytes.Buffer, opts ...interface{}) error { } if p.Header.Type&hessian.PackageRequest != 0x00 { + // size of this array must be '7' + // https://github.com/apache/dubbo-go-hessian2/blob/master/request.go#L272 p.Body = make([]interface{}, 7) } else { pendingRsp, ok := client.pendingResponses.Load(SequenceType(p.Header.ID)) -- GitLab