request buffer_size is now 64bit (except for uwsgi protocol)

This commit is contained in:
Unbit
2014-09-21 08:26:20 +02:00
parent e2a29ee135
commit ed2ca5d333
46 changed files with 208 additions and 187 deletions
+4 -4
View File
@@ -2339,14 +2339,14 @@ PyObject *py_uwsgi_parse_file(PyObject * self, PyObject * args) {
goto clear2;
}
buffer = malloc(uh.pktsize);
buffer = malloc(uh._pktsize);
if (!buffer) {
uwsgi_error("malloc()");
UWSGI_GET_GIL
goto clear2;
}
len = read(fd, buffer, uh.pktsize);
if (len != uh.pktsize) {
len = read(fd, buffer, uh._pktsize);
if (len != uh._pktsize) {
uwsgi_error("read()");
free(buffer);
UWSGI_GET_GIL
@@ -2356,7 +2356,7 @@ PyObject *py_uwsgi_parse_file(PyObject * self, PyObject * args) {
UWSGI_GET_GIL
ptrbuf = buffer;
bufferend = ptrbuf + uh.pktsize;
bufferend = ptrbuf + uh._pktsize;
if (!uh.modifier1 || uh.modifier1 == UWSGI_MODIFIER_SPOOL_REQUEST) {
zero = PyDict_New();
+1 -1
View File
@@ -326,7 +326,7 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) {
}
/* Standard WSGI request */
if (!wsgi_req->uh->pktsize) {
if (!wsgi_req->len) {
uwsgi_log( "Empty python request. skip.\n");
return -1;
}