thread-safe wsgi env behaviour

This commit is contained in:
roberto@quantal64
2012-06-02 09:43:24 +02:00
parent c3cbcbb0d5
commit f62f7f9282
3 changed files with 15 additions and 14 deletions
-6
View File
@@ -150,7 +150,6 @@ void *uwsgi_request_subhandler_wsgi(struct wsgi_request *wsgi_req, struct uwsgi_
PyDict_SetItemString(wsgi_req->async_environ, "uwsgi.node", wi->uwsgi_node);
// call
PyTuple_SetItem(wsgi_req->async_args, 0, wsgi_req->async_environ);
return python_call(wsgi_req->async_app, wsgi_req->async_args, uwsgi.catch_exceptions, wsgi_req);
}
@@ -219,12 +218,8 @@ int uwsgi_response_subhandler_wsgi(struct wsgi_request *wsgi_req) {
#endif
}
pychunk = PyIter_Next(wsgi_req->async_placeholder);
if (!pychunk) {
if (PyErr_Occurred()) {
int do_exit = uwsgi_python_manage_exceptions();
@@ -309,7 +304,6 @@ clear2:
Py_DECREF((PyObject *)wsgi_req->async_result);
PyErr_Clear();
return UWSGI_OK;
}