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

实现有问题 #23

Open
at-zhao opened this issue Jul 8, 2022 · 0 comments
Open

实现有问题 #23

at-zhao opened this issue Jul 8, 2022 · 0 comments

Comments

@at-zhao
Copy link

at-zhao commented Jul 8, 2022

http.Request Close 参数没有设置
httpClient 会默认在下一次请求时复用同一个 tcp链接
然而此时对方已经关闭,可能会出现 EOF 错误

参考:https://stackoverflow.com/questions/28046100/golang-http-concurrent-requests-post-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

1 participant