Skip to content

Commit

Permalink
Merge pull request benoitc#2304 from closeio/fix-gevent-loop-exit
Browse files Browse the repository at this point in the history
Exit async keepalive request loop when self.alive is False
  • Loading branch information
tilgovi authored Apr 20, 2020
2 parents 8cb2bd2 + 7896057 commit bf14a0f
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 bf14a0f

Please sign in to comment.