spooler multiprocess fixes

This commit is contained in:
roberto@precise64
2012-03-20 10:58:48 +01:00
parent b386317921
commit 08afa73e69
6 changed files with 67 additions and 15 deletions
+4
View File
@@ -1715,6 +1715,8 @@ PyObject *py_uwsgi_send_spool(PyObject * self, PyObject * args, PyObject *kw) {
}
}
UWSGI_RELEASE_GIL
if (numprio) {
priority = uwsgi_num2str(numprio);
}
@@ -1725,6 +1727,8 @@ PyObject *py_uwsgi_send_spool(PyObject * self, PyObject * args, PyObject *kw) {
free(spool_buffer);
UWSGI_GET_GIL
Py_DECREF(spool_vars);
if (i > 0) {
+2
View File
@@ -502,12 +502,14 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) {
}
// this object must be freed/cleared always
UWSGI_GET_GIL
if (wsgi_req->async_input) {
Py_DECREF((PyObject *)wsgi_req->async_input);
}
if (wsgi_req->async_environ) {
PyDict_Clear(wsgi_req->async_environ);
}
UWSGI_RELEASE_GIL
clear: