StopIteration Exceptions for Gevent worker in Gunicorn

今天部署新项目上线测试,使用了gunicorn。发现在log里面始终会有如下错误:

2014-06-24 17:38:55 [28563] [ERROR] Error handling request
Traceback (most recent call last):
  File "/home/casterly-rock/venv/local/lib/python2.7/site-packages/gunicorn/workers/async.py", line 116, in handle_request
    raise StopIteration()
StopIteration

可是请求和返回都是正常的。

搜了一下在gunicorn的github项目中找到这个issue。https://github.com/benoitc/gunicorn/issues/790

从github上clone下来最新的源码解决问题。

pip install -e git+https://github.com/benoitc/gunicorn.git#egg=gunicorn --upgrade
1 comments