mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-04 07:58:33 +00:00
leave_open should not be available for WSGI requests. It overcomplicates things
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user