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