gevent 生成 1024 个以上就报错了 IOError: cannot watch more than 1024 sockets

1 9hills Apr 23, 2016 via Android 这个和 python 无关,关键词 linux fd limit 搜一搜 |
3 neoblackcap Apr 23, 2016 @chewuhe windows 没有这个 fd 的限制,在 windows 上你操作的 sockets 仅跟你的机器资源有关 资料来源: https://msdn.microsoft.com/en-us/library/windows/desktop/ms739169(v=vs.85).aspx |
4 leavic Apr 24, 2016 aiohttp? |
5 chewuhe OP @neoblackcap 1024 这个限制怎么弄大点呢?有没有办法? |
6 neoblackcap Apr 24, 2016 @chewuhe 都说 windows 没有 fd 的限制,你看看你是不是耗光了内存了。 linux 等 Unix-like 系统才会有 fd 的数量限制,那个我记得是去改在 /etc/ssyctl.conf 里面的 net.core.somaxconn 参数(没有就自己加) |
7 zerofiny Apr 24, 2016 windows 非 Server 版本有并发连接数问题, Server 版没有这个限制 百度搜 windows 并发连接数 |
8 lbp0200 Apr 25, 2016 via Android windows 有端口号限制,一个端口需要 4 分钟才能释放 |
9 lifeishort May 29, 2018 via iPhone @neoblackcap 事实上 windows 桌面版是有 1024 限制的 |