smallnest / rpcx

Best microservices framework in Go, like alibaba Dubbo, but with more features, Scale easily. Try it. Test it. If you feel it's better, use it! 𝐉𝐚𝐯𝐚有𝐝𝐮𝐛𝐛𝐨, 𝐆𝐨𝐥𝐚𝐧𝐠有𝐫𝐩𝐜𝐱! build for cloud!
https://rpcx.io
Other
8.08k stars 1.16k forks source link

我这边偶尔出现ERROR: rpcx: client protocol error: unexpected EOF 和客户端缓存有关系吗 #813

Closed fengyuzheng2020 closed 1 year ago

fengyuzheng2020 commented 1 year ago

我在服务器启动的时候初始化好这两个map,并且建立连接 discoveryCache = make(map[string]rpxClient.ServiceDiscovery) xclientCache = make(map[string]rpxClient.XClient) 调用的时候直接取然后调用有问题吗 cacheClientMutex.RLock() c, ok := xclientCache[registerName] cacheClientMutex.RUnlock() c.Call(ctx, method, req, resp)

smallnest commented 1 year ago

没问题