]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
add a comment lamenting the lack of a cleanup for the CGI child
authorJeff Trawick <trawick@apache.org>
Thu, 31 Oct 2002 09:30:43 +0000 (09:30 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 31 Oct 2002 09:30:43 +0000 (09:30 +0000)
process and mentioning some issues related to the problem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97362 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgid.c

index 5f0ffdba0bddeb4e40af95e53468c52aa1e0cef1..5efd48fcc5dcca095a053c248a1842caffb4ce65 100644 (file)
@@ -658,6 +658,21 @@ static int cgid_server(void *data)
                               apr_filename_of_pathname(r->filename));
             }
         }
+        /* SNAFU: no call to apr_pool_note_subprocess() to cause the
+         *        CGI to be cleaned up when the request ends (in case
+         *        client drops connection)...  can't write the pid back
+         *        to cgid_handler() because by the time we know the pid
+         *        the new CGI is already started and potentially writing
+         *        headers and body back to the handler...
+         *        perhaps cgid_handler() needs to provide a key with
+         *        a request to which cgid daemon will associate the
+         *        CGI pid...  at request_rec cleanup time, that key
+         *        gets sent back to cgid_handler() telling it to kill
+         *        whatever pid is associated with the key...
+         *        2 flows per request, which isn't cool...  but 
+         *        having the CGI running after client killed connection
+         *        isn't cool either...
+         */
     } 
     return -1; 
 }