]> granicus.if.org Git - apache/commitdiff
mod_cgid: In the handler, shut down the Unix socket (only for write)
authorJeff Trawick <trawick@apache.org>
Fri, 13 Oct 2000 03:38:35 +0000 (03:38 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 13 Oct 2000 03:38:35 +0000 (03:38 +0000)
once we finish writing the request body to the cgi child process;
otherwise, the client doesn't hit EOF on stdin.  Small request bodies
worked without this change (for reasons I don't understand), but large
ones didn't.

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

modules/generators/mod_cgid.c

index c3840a87840b78b347cb14adf149a1f96607a851..46763f8f0d1f30939cee52251c2f950a3c2820e6 100644 (file)
@@ -960,6 +960,7 @@ static int cgid_handler(request_rec *r)
                 break; 
             } 
         } 
+        shutdown(sd, 1); /* done writing; force EOF on child's stdin */
     } 
 
     /* Handle script return... */