summaryrefslogtreecommitdiff
path: root/modules/generators/mod_cgid.c
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2000-10-13 03:38:35 +0000
committerJeff Trawick <trawick@apache.org>2000-10-13 03:38:35 +0000
commit2f6f8a66fd0806f9e7d622871a5d4099b1e84137 (patch)
tree0a10b962f10c59ce3a533e04a079fa1d0bc3306e /modules/generators/mod_cgid.c
parent2761c91ac97767b3c57878d2442fe92f219e1eb5 (diff)
downloadhttpd-2f6f8a66fd0806f9e7d622871a5d4099b1e84137.tar.gz
mod_cgid: In the handler, shut down the Unix socket (only for write)
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
Diffstat (limited to 'modules/generators/mod_cgid.c')
-rw-r--r--modules/generators/mod_cgid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c
index c3840a8784..46763f8f0d 100644
--- a/modules/generators/mod_cgid.c
+++ b/modules/generators/mod_cgid.c
@@ -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... */