fixed http fd passing on POST

This commit is contained in:
roberto@natty32
2011-03-04 14:23:36 +01:00
parent c478b0a0c8
commit e53a6fa4c0
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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;
+3
View File
@@ -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);