Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 gevent socketio 时,我得到了太多的连接 (1040)。我现在正在使用猴子补丁。我可以限制创建的线程(greenlets)的数量并让一些作业共享线程吗?我正在使用 gunicorn 和 django。
好吧,尝试gevent.pool()在您的代码中使用它,您可以限制它可以产生多少绿叶。你的问题要'一般'来回答。您需要提供更多有关绿叶产卵的背景和来源的信息。
gevent.pool()