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

EOF问题 #244

Open
Yelijah opened this issue Aug 3, 2022 · 1 comment
Open

EOF问题 #244

Yelijah opened this issue Aug 3, 2022 · 1 comment

Comments

@Yelijah
Copy link

Yelijah commented Aug 3, 2022

经常会有请求报错500, 后台日志报错EOF,看了下pkg/util/fasthttp_client.go:219代码,压根没有处理失效连接(与server的连接可能会由于网络等原因异常断开),这谁敢用啊,连接池里的连接指不定啥时候就被server断开了

@crazyIceChen
Copy link
Contributor

你可能没有用对,连接池的参数可以设置,同时后端服务的读写超时时间也要相应的进行修改,不然的话,连接池里面的连接还没断开,就被后端服务给超时断开了,所以经常会报EOF的错误

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