-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
msgpack解码异常时,引起panic,rpcx没捕获异常,导致程序退出 #665
Comments
在xclient.Call之前,把输出清一下,目前暂时不出现该错误了。 |
需要一个简单例子复现问题。不清楚是rpcx问题还是vmihailenco/msgpack问题 |
没有更详细的信息,无法确定问题所在,暂时close。 |
是 msgpack 的问题 (! 今天太晚了,就简单说说怎么复现。 func main() {
type Data struct {
Data1 *string
Data2 *string
Data3 *string
Data4 *string
Data5 *string
}
xClient := client.XClient{}
go func() {
data := &Data{}
for i := 0; i < 100; i++ {
xClient.Call(context.Background(), "name", nil, data)
}
}()
} msgpack 编解码 data 时,会报 panic。 对于 msgpack 的细节可见 vmihailenco/msgpack#310 等有时间了,去提个 pr。建议警告一下用户。这个 bug ,由来已久。。。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在 C:/gowork/pkg/mod/github.com/smallnest/[email protected]/client/connection.go:74
go c.input()
msgpack解码异常,会引起panic,在线程中,没有捕获,会导致整个程序退出
vmihailenco/msgpack#309
The text was updated successfully, but these errors were encountered: