Handle requests after the first one (fixing keep-alive)
This commit is contained in:
parent
b28eed137e
commit
805e25cff6
@ -259,6 +259,7 @@ static void fcgi_cgi_child_check_done(fcgi_cgi_child *cld) {
|
|||||||
} else {
|
} else {
|
||||||
if (cld->pid == -1 && cld->pipe_out == -1 && cld->pipe_in == -1 && cld->pipe_err == -1) {
|
if (cld->pid == -1 && cld->pipe_out == -1 && cld->pipe_in == -1 && cld->pipe_err == -1) {
|
||||||
fastcgi_end_request(cld->fcon, cld->child_status, FCGI_REQUEST_COMPLETE);
|
fastcgi_end_request(cld->fcon, cld->child_status, FCGI_REQUEST_COMPLETE);
|
||||||
|
fcgi_cgi_child_free(cld);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user