-
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
请求出现 ERROR: rpcx: client protocol error: unexpected EOF #845
Comments
你这不是300 > 160 导致超时了? |
您发送给我的邮件 我已经收到了
所以,请您放心吧
|
这个160不是拨号的超时时间吗? for循环之前就连上了呀。 |
对,不是超时问题。 |
嗯,原因找到了,是服务端设置的readtimeout ,因为客户端设置了sleep,服务端等待下次请求超时导致的。 最终解决是客户端设置了心跳,并且心跳间隔小于服务端的readtimeout |
您发送给我的邮件 我已经收到了
所以,请您放心吧
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题:
客户端请求返回结果后会出现:
2024/03/22 10:18:49 client.go:764: ERROR: rpcx: client protocol error: unexpected EOF
请问是哪里的问题,因为是本机内部rpc调用,下面设置的时长不应该会出现超时断开的情况吧
@smallnest 辛苦帮忙看一下,这个是什么错误?下面代码配置的参数哪里有问题?
客户端代码如下:
服务端代码配置如下:
The text was updated successfully, but these errors were encountered: