From 44277b38cd38263b867900f1b49a00761fc17999 Mon Sep 17 00:00:00 2001 From: "roberto@fiorenzo" Date: Fri, 17 Dec 2010 18:05:41 +0100 Subject: [PATCH] leave_open should not be available for WSGI requests. It overcomplicates things --- plugins/python/wsgi_headers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/python/wsgi_headers.c b/plugins/python/wsgi_headers.c index c8632170..9866bd17 100644 --- a/plugins/python/wsgi_headers.c +++ b/plugins/python/wsgi_headers.c @@ -167,6 +167,7 @@ PyObject *py_uwsgi_spit(PyObject * self, PyObject * args) { uh.pktsize += wsgi_req->hvec[j].iov_len; +/* if (cl != -1) { // send uwsgi header only if response size is lower than 0xFFFF if (cl <= 0xffff) { @@ -180,6 +181,7 @@ PyObject *py_uwsgi_spit(PyObject * self, PyObject * args) { wsgi_req->leave_open = 0; } } +*/ UWSGI_RELEASE_GIL wsgi_req->headers_size = writev(wsgi_req->poll.fd, wsgi_req->hvec, j + 1);