lua build fixes

This commit is contained in:
roberto@maverick64
2011-01-09 08:07:51 +01:00
parent b9621b620a
commit 8a8d029357
4 changed files with 12 additions and 55 deletions
+1 -27
View File
@@ -1,29 +1,3 @@
[uwsgi]
xml = true
ini = true
snmp = true
sctp = false
erlang = false
spooler = false
embedded = false
udp = true
multicast = false
threading = true
sendfile = true
nagios = true
proxy = true
minterpreters = true
async = true
ugreen = false
http = true
evdis = false
ldap = false
routing = false
stackless = false
debug = false
unbit = false
xml_implementation = libxml2
plugins =
bin_name = uwsgi
plugin_dir = .
inherit = default
embedded_plugins = lua
+2 -27
View File
@@ -1,29 +1,4 @@
[uwsgi]
xml = true
ini = true
snmp = true
sctp = false
erlang = false
spooler = false
embedded = false
udp = true
multicast = false
threading = true
sendfile = true
nagios = true
proxy = true
minterpreters = true
async = true
ugreen = false
http = true
evdis = false
ldap = false
routing = false
stackless = false
debug = false
unbit = false
xml_implementation = libxml2
inherit = default
plugins = lua
bin_name = uwsgi
plugin_dir = .
embedded_plugins =
embedded_plugins = ping, nagios, rpc
+3
View File
@@ -16,6 +16,9 @@ PyObject *python_call(PyObject *callable, PyObject *args, int catch) {
pyret = PyEval_CallObject(callable, args);
if (PyErr_Occurred()) {
if (PyErr_ExceptionMatches(PyExc_MemoryError)) {
uwsgi_log("Memory Error detected !!!\n");
}
if (!catch) {
PyErr_Print();
}
+6 -1
View File
@@ -165,7 +165,12 @@ int uwsgi_response_subhandler_wsgi(struct wsgi_request *wsgi_req) {
pychunk = PyIter_Next(wsgi_req->async_placeholder);
if (!pychunk) {
if (PyErr_Occurred()) PyErr_Print();
if (PyErr_Occurred()) {
if (PyErr_ExceptionMatches(PyExc_MemoryError)) {
uwsgi_log("Memory Error detected !!!\n");
}
PyErr_Print();
}
goto clear;
}