我正在connection refused because too many open connections: 204
尝试MyApp.objects.get(foo=bar)
在 gevent 过程中进行操作。在 models.py 我有connect('my_db')
. 在我的脚本中,gevent.monkey.patch_all()
我看到了这个问题
pymongo + gevent:给我一个香蕉,然后给我monkey_patch?
和这个问题
https://github.com/hmarr/mongoengine/issues/272
但我不明白如何访问调用的连接end_request
。我也试过这个补丁,但它对我没有帮助(除非我用错了)