限制libevent中的连接
我想控制每个进程可能的 libevent-http 连接的限制。
我怎样才能做到这一点?
我在文档中没有找到任何信息,请帮忙!
我认为如果我不限制连接数量 - 系统可能会崩溃。项目负荷非常高。
ev_base = event_init();
ev_http = evhttp_new(ev_base);
// limit http connections here... how can i do that?
I want to control limit of possible libevent-http connections per process.
How can i do that ?
I didn't found any info in documentation, please help!
I think that if i didn't limit number of connections - system can crash. Project is very high load.
ev_base = event_init();
ev_http = evhttp_new(ev_base);
// limit http connections here... how can i do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
待办事项是您要修改的内容。
他们在内部调用:
但是在他们的 http 库中,他们将积压的数量修复为 128:
The backlog is what you want to modify.
Internally they call:
However in their http library they fix the backlog to 128: