mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-04 16:08:31 +00:00
fixed http fd passing on POST
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user