workerman/http-client

ys19951226

异步的http请求数多了后,服务器会卡住

3269 1 0
1个回答

latin

是不是连接数超过系统限制了
http://doc.workerman.net/appendices/kernel-optimization.html
优化下linux内核试下,还有要装event扩展。

  • ys19951226 2021-03-09

    异步的HTTP请求也会算到TCP的连接里面吗,现在用的win环境,报system call select exceeded the maximum number of connections 256

  • latin 2021-03-09

    会算。你这个是超过连接数了。workerman在windows下单个进程连接数有限制,好像最多能支持256个连接。
    超过这个数你得用linux,并优化linux内核,安装event扩展

年代过于久远,无法发表回答
🔝