Skip to content
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

是否有人遇到过Connection reset by peer的错误日志? #223

Open
mofaxiaoyuan opened this issue Dec 10, 2024 · 1 comment
Open

Comments

@mofaxiaoyuan
Copy link

Caused by: rpc.exc.ClientException: xxxx.xxxxServer.xxxxObj|Connection reset by peer|172.xx.xx.xx:10003
Caused by: java.io.IOException: Connection reset by peer|172.xx.xx.xx:10003
at client.rpc.ServantClient.invokeWithSync(ServantClient.java:124)

服务间调用client端偶发性Connection reset by peer,从日志上看server没有收到请求

@walkertest
Copy link
Contributor

  • 可以进微信群里讨论交流
  • 这个问题大概率是 稀疏连接场景,在发起请求的过程中,连接被对端的空闲连接检测给关闭了;
  • 一个解决方法:客户端判断连接快要过期了(提前5s),重新建立连接. (这个需要框架支持.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants