diff --git a/gunicorn/workers/base_async.py b/gunicorn/workers/base_async.py index 7b2daf91..cbc2606f 100644 --- a/gunicorn/workers/base_async.py +++ b/gunicorn/workers/base_async.py @@ -42,7 +42,7 @@ class AsyncWorker(base.Worker): else: # keepalive loop proxy_protocol_info = {} - while True: + while self.alive: req = None with self.timeout_ctx(): req = next(parser)