fixed buf in python uwsgi.workers()

This commit is contained in:
Roberto De Ioris
2013-01-21 14:50:27 +01:00
parent dda6bb2a5f
commit b59f3b254f
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -162,9 +162,12 @@ PyObject *py_uwsgi_spit(PyObject * self, PyObject * args) {
}
if (up.start_response_nodelay) {
UWSGI_RELEASE_GIL
if (uwsgi_response_write_headers_do(wsgi_req)) {
UWSGI_GET_GIL
return PyErr_Format(PyExc_IOError, "unable to directly send headers");
}
UWSGI_GET_GIL
}
Py_INCREF(up.wsgi_writeout);