You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have reproduced the problem according to the steps you gave, and found that the current version does not perform heartbeat detection on the session, which is fixed in dubbo-go@v3. The code snippet is:
decodeResult, drOK := pkg.(*remoting.DecodeResult)
if !drOK || decodeResult == ((*remoting.DecodeResult)(nil)) {
logger.Errorf("illegal package{%#v}", pkg)
return
}
if !decodeResult.IsRequest {
res := decodeResult.Result.(*remoting.Response)
if res.Event {
logger.Debugf("get rpc heartbeat response{%#v}", res)
if res.Error != nil {
logger.Errorf("rpc heartbeat response{error: %#v}", res.Error)
}
res.Handle()
return
}
logger.Errorf("illegal package but not heartbeat. {%#v}", pkg)
return
}
req := decodeResult.Result.(*remoting.Request)
What happened:
When run dubbo2http samples use develop branch, will hit error log like follow code:
this pkg object is
*remoting.DecodeResult
What you expected to happen:
drOk will true, and run continue.
How to reproduce it (as minimally and precisely as possible):
Just run pixiu, samples/dubbohttpproxy/server/http/server.go, and run dubbo2http_test.go.
The text was updated successfully, but these errors were encountered: