From 8c5613b1ad9929ca1c852745ee26ddd6bc1a1f6b Mon Sep 17 00:00:00 2001 From: Randall Leeds Date: Mon, 20 Apr 2020 12:02:26 -0700 Subject: [PATCH] Revert "Exit async keepalive request loop when self.alive is False" --- gunicorn/workers/base_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/workers/base_async.py b/gunicorn/workers/base_async.py index cbc2606f6..7b2daf91b 100644 --- a/gunicorn/workers/base_async.py +++ b/gunicorn/workers/base_async.py @@ -42,7 +42,7 @@ def handle(self, listener, client, addr): else: # keepalive loop proxy_protocol_info = {} - while self.alive: + while True: req = None with self.timeout_ctx(): req = next(parser)