rpcinfo.GetRPCInfo获取的rpc_info非线程安全
Author: kom0055Created May 20, 2026Updated May 22, 2026
Describe the bug
代码底层使用了pool ,但是rpcinfo.GetRpcInfo()拿到了引用,如果在A方法异步去做。可能会被recycle拿到了空的属性,或者拿到B方法的属性(可能被此时的B方法从pool里取出并赋值) 这个feature有点坑啊。。。 如果非线程安全,那不要暴露出来。。或者COW
To Reproduce
Minimal code or configuration to reproduce the issue:
// paste your code hereSteps:
- ...
- ...
Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
What actually happened. Include error messages, logs, or panic stack traces if available.
// paste error output or logs hereEnvironment:
- Kitex version: (e.g. v0.12.1)
- Protocol: (Thrift / Protobuf / gRPC)
- Transport: (TTHeader / HTTP2 / Framed / ...)
go env// paste the output of `go env` hereAdditional context
Any other context such as IDL definitions, network topology, proxy/mesh setup, or service governance configuration (retry, circuit breaker, load balancer, etc.).
Source: cloudwego/kitex