From 805e25cff62fd9e407d6ce4e0c106e295a533aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 18 May 2013 17:52:11 +0200 Subject: [PATCH] Handle requests after the first one (fixing keep-alive) --- fcgi-cgi.c | 1 + 1 file changed, 1 insertion(+) 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); } } }