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!

Home Page:https://rpcx.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

fengyuzheng2020 opened this issue · comments

我在服务器启动的时候初始化好这两个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)

没问题