You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/03/17 01:51:57 UTC

[GitHub] [dubbo-go-hessian2] miracle-xiang edited a comment on issue #311: dubboVersion为"2.8.4a" 可以使用该库解析吗?

miracle-xiang edited a comment on issue #311:
URL: https://github.com/apache/dubbo-go-hessian2/issues/311#issuecomment-1069824334


   - UT
   
   `func TestParseDubboHessian(t *testing.T) {
   	raw, _ := loadPcap("dubbo_req.pcap")
   
   	codecR := hessian2.NewHessianCodec(bufio.NewReader(bytes.NewReader(raw[108:])))
   	header := &hessian2.DubboHeader{}
   	err := codecR.ReadHeader(header)
   	if err != nil {
   		t.Errorf("read header err [%v]\n", err)
   	}
   
   	c := make([]interface{}, 7)
   	err = codecR.ReadBody(c)
   	if err != nil {
   		t.Errorf("read body err [%v]\n", err)
   	}
   }`
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org