benoitc/gunicorn — pull request #495 by CMGS (2013-02-28 07:32:20+00:00)
Title: ALREADY_HANDLED in iterator

app may return a generator, however, we don't know it iterable or not.if app return a empty str or something like this and we use respiter.next() it would cause the StopIteration exception we don't expect and we have to get the first item in the respiter because the gunicorn support app to handle the socket and return ALREADY_HANDLED to tell the workers.