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

使用BRPC作为HTTP服务端,如何设置最大连接数、请求处理超时时间? #2808

Open
Yeehok opened this issue Nov 1, 2024 · 0 comments

Comments

@Yeehok
Copy link

Yeehok commented Nov 1, 2024

目前在brpc::ServerOptions内找到两个参数
idle_timeout_sec和method_max_concurrency,分别描述为“连接但无数据传输时的连接关闭时间”和“最大并发数”
目前实际测试过程中(使用slowhttptest工具),当持续建立连接(比如pending 1w个连接),并且持续缓慢发送数据时,服务会被打爆并变得不可用。
所以请问对于使用BRPC启动的HTTP Service,是否有支持 限制最大连接数,和超时断开连接 的设置。

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