diff --git a/gunicorn/workers/async.py b/gunicorn/workers/async.py index feba3b08..479e6e87 100644 --- a/gunicorn/workers/async.py +++ b/gunicorn/workers/async.py @@ -38,14 +38,17 @@ class AsyncWorker(base.Worker): self.handle_request(listener_name, req, client, addr) else: # keepalive loop - proxy_protocol_info = req.proxy_protocol_info + proxy_protocol_info = {} while True: req = None with self.timeout_ctx(): req = six.next(parser) if not req: break - req.proxy_protocol_info = proxy_protocol_info + if req.proxy_protocol_info: + proxy_protocol_info = req.proxy_protocol_info + else: + req.proxy_protocol_info = proxy_protocol_info self.handle_request(listener_name, req, client, addr) except http.errors.NoMoreData as e: self.log.debug("Ignored premature client disconnection. %s", e)