aboutsummaryrefslogtreecommitdiff
path: root/fcgi-cgi.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2013-05-18 17:52:11 +0200
committerStefan Bühler <stbuehler@web.de>2013-05-18 17:52:11 +0200
commit805e25cff62fd9e407d6ce4e0c106e295a533aae (patch)
treed87499ee31538bd66aca2bd78322154ca39811f7 /fcgi-cgi.c
parentb28eed137e16d011853b15be11977c7b13f9a85e (diff)
downloadfcgi-cgi-805e25cff62fd9e407d6ce4e0c106e295a533aae.tar.gz
fcgi-cgi-805e25cff62fd9e407d6ce4e0c106e295a533aae.zip
Handle requests after the first one (fixing keep-alive)
Diffstat (limited to 'fcgi-cgi.c')
-rw-r--r--fcgi-cgi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fcgi-cgi.c b/fcgi-cgi.c
index 699376c..31fd27c 100644
--- a/fcgi-cgi.c
+++ b/fcgi-cgi.c
@@ -259,6 +259,7 @@ static void fcgi_cgi_child_check_done(fcgi_cgi_child *cld) {
} else {
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);
+ fcgi_cgi_child_free(cld);
}
}
}