From 0c26280486af314f68eedf698c4355ef79194ae8 Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 22 Apr 2010 22:02:44 +0200 Subject: [PATCH] response has no socket object but request has. bug detected while running longpoll test. --- gunicorn/http/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/response.py b/gunicorn/http/response.py index 3de05fe3..a4fda046 100644 --- a/gunicorn/http/response.py +++ b/gunicorn/http/response.py @@ -56,7 +56,7 @@ class Response(object): if not self.headers_sent: self.send_headers() if self.chunked: - write_chunk(self.socket, "") + write_chunk(self.req.socket, "") class KeepAliveResponse(Response):