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

tcp连接占用时间太长导致请求量大时进程文件打开数过多报错 #41

Closed
zeng-rr opened this issue Jun 17, 2024 · 3 comments

Comments

@zeng-rr
Copy link

zeng-rr commented Jun 17, 2024

目前测试看到的tcp连接(服务端发起的请求)在客户端请求结束后还会生存10分钟左右才被释放,能不能在请求结束后及时关闭连接释放资源,并且可以接收一个请求超时时间参数来设置请求超时,避免连接长时间占用

@bincooo
Copy link
Owner

bincooo commented Jun 18, 2024

你说的是 ESTABLISHED 空闲连接的释放周期过长吗?还是什么

@zeng-rr
Copy link
Author

zeng-rr commented Jun 19, 2024

你说的是 ESTABLISHED 空闲连接的释放周期过长吗?还是什么

是的,客户端的请求已经结束了,服务端发起的请求建立的连接还会保持很长一段时间的ESTABLISHED,这些连接既没有释放也没有被复用,导致有新的请求进来连接数就会一直增长

@zeng-rr
Copy link
Author

zeng-rr commented Jun 21, 2024

已解决,感谢作者帮助!

@zeng-rr zeng-rr closed this as completed Jun 21, 2024
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