From 0024bf56befd839ad07c8478811df5ba22898b40 Mon Sep 17 00:00:00 2001 From: "roberto@fiorenzo" Date: Thu, 25 Nov 2010 09:53:56 +0100 Subject: [PATCH] fixed python module split --- plugins/python/pyloader.c | 6 +++++- socket.c | 4 ---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/python/pyloader.c b/plugins/python/pyloader.c index 4339cd28..d03a51c7 100644 --- a/plugins/python/pyloader.c +++ b/plugins/python/pyloader.c @@ -319,9 +319,13 @@ PyObject *uwsgi_uwsgi_loader(void *arg1) { else { quick_callable = "application"; } + wsgi_dict = get_uwsgi_pydict(module); + } + else { + wsgi_dict = get_uwsgi_pydict(module); + module[strlen(module)] = ':'; } - wsgi_dict = get_uwsgi_pydict(module); if (!wsgi_dict) { return NULL; } diff --git a/socket.c b/socket.c index df429165..17df3a82 100644 --- a/socket.c +++ b/socket.c @@ -140,7 +140,6 @@ int bind_to_unix(char *socket_name, int listen_queue, int chmod_socket, int abst #ifdef UWSGI_MULTICAST struct ip_mreq mc; uint8_t loop = 0; - int ttl = 1; #endif udp_port = strchr(socket_name, ':'); @@ -199,9 +198,6 @@ int bind_to_unix(char *socket_name, int listen_queue, int chmod_socket, int abst uwsgi_error("setsockopt()"); } - if (setsockopt(serverfd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl))) { - uwsgi_error("setsockopt()"); - } } #endif