diff --git a/gunicorn/workers/async.py b/gunicorn/workers/async.py index d3cce5fc..4cfa7a86 100644 --- a/gunicorn/workers/async.py +++ b/gunicorn/workers/async.py @@ -114,6 +114,8 @@ class AsyncWorker(base.Worker): respiter.close() if resp.should_close(): raise StopIteration() + except StopIteration: + raise except Exception: if resp and resp.headers_sent: # If the requests have already been sent, we should close the