leave_open should not be available for WSGI requests. It overcomplicates things

This commit is contained in:
roberto@fiorenzo
2010-12-17 18:05:41 +01:00
parent 31bd3fa6c4
commit 44277b38cd
+2
View File
@@ -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);