diff --git a/plugins/http/http.c b/plugins/http/http.c index fde64b55..db747d01 100644 --- a/plugins/http/http.c +++ b/plugins/http/http.c @@ -696,7 +696,7 @@ void http_loop() { } // fd passing: PERFORMANCE EXTREME BOOST !!! - if (uhttp_session->pass_fd) { + if (uhttp_session->pass_fd && !uhttp_session->remains) { msg.msg_name = NULL; msg.msg_namelen = 0; msg.msg_iov = uhttp_session->iov; diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index 98017930..9c366678 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -832,6 +832,9 @@ int uwsgi_python_signal_handler(uint8_t sig, void *handler) { if (!args) return -1; + if (!handler) return -1; + + PyTuple_SetItem(args, 0, PyInt_FromLong(sig)); ret = python_call(handler, args, 0);