From 174116c48b8ef01b03325c4658d4fba6d251efc9 Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Wed, 14 Apr 2010 07:25:58 +0200 Subject: [PATCH] a bunch of fixes for release candidate --- plugins/lua/lua_plugin.c | 4 +++- uwsgi.c | 2 ++ uwsgiconfig.py | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/lua/lua_plugin.c b/plugins/lua/lua_plugin.c index ca8305a9..bbc865e1 100644 --- a/plugins/lua/lua_plugin.c +++ b/plugins/lua/lua_plugin.c @@ -208,5 +208,7 @@ int uwsgi_request(struct uwsgi_server *uwsgi, struct wsgi_request *wsgi_req) { } void uwsgi_after_request(struct uwsgi_server *uwsgi, struct wsgi_request *wsgi_req) { - return; + + if (uwsgi->shared->options[UWSGI_OPTION_LOGGING]) + log_request(wsgi_req); } diff --git a/uwsgi.c b/uwsgi.c index 6cba17d2..3adbeedd 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -1376,12 +1376,14 @@ int main(int argc, char *argv[], char *envp[]) { // postpone the queue initialization as kevent do not pass kfd after fork() +#ifdef UWSGI_ASYNC if (uwsgi.async > 1) { uwsgi.async_queue = async_queue_init(uwsgi.serverfd); if (uwsgi.async_queue < 0) { exit(1); } } +#endif diff --git a/uwsgiconfig.py b/uwsgiconfig.py index a2574a8f..db45c1af 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -23,7 +23,8 @@ UWSGI_BIN_NAME = 'uwsgi' GCC='gcc' # specific compilation flags -XML_IMPLEMENTATION = 'expat' +# libxml2 or expat +XML_IMPLEMENTATION = 'libxml2' # if you want to use alternative python lib, specifiy its path here #PYLIB_PATH = '/home/roberto/uwsgi/STACKLESS/slp/lib' PYLIB_PATH = ''