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

Http服务什么情况会 Connection refused: connect ?并发数? #669

Open
1 task done
peng-poso2o opened this issue Sep 23, 2024 · 1 comment
Open
1 task done

Comments

@peng-poso2o
Copy link

Issues

  • I have browsed through the Issues. 我已浏览过Issues,确定没有重复的建议。

Expected behavior 预期的功能

看到有线程数设置,可以加大吗?

Approximate reference (optional) 近似的参考(可选)

No response

@hiroi-sora
Copy link
Owner

Umi的http后端是python标准库的 WSGIServer ,是个单线程同步式的服务器组件,不支持设置线程。

当前我们Http的目标是为家用/小开发者提供简单易用的功能和接口,因此依赖组件较为轻量。在生产环境中确实可能性能不足、不支持高并发。高并发下,或者长期在线时,可能有一些连接资源没有及时释放,导致后端线程卡在某次请求,客户端报出 Connection refused 之类的错误。

远期,考虑添加性能更好(体积更大)的后端组件,作为可选的插件。短期内没有相关开发计划。

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