Skip to content

Commit

Permalink
Exit keepalive request loop when self.alive is False
Browse files Browse the repository at this point in the history
  • Loading branch information
jkemp101 committed Apr 10, 2020
1 parent 8cb2bd2 commit 7896057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/workers/base_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def handle(self, listener, client, addr):
else:
# keepalive loop
proxy_protocol_info = {}
while True:
while self.alive:
req = None
with self.timeout_ctx():
req = next(parser)
Expand Down

0 comments on commit 7896057

Please sign in to comment.