diff --git a/gunicorn/workers/async.py b/gunicorn/workers/async.py index d3cce5fc7..4cfa7a86c 100644 --- a/gunicorn/workers/async.py +++ b/gunicorn/workers/async.py @@ -114,6 +114,8 @@ def handle_request(self, listener_name, req, sock, addr): 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