request body from its stdin but no reqest body is being written to
the cgi.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88975
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.18-dev
+
+ *) Prevent a hang when a cgi handled by mod_cgid tries to read a
+ request body from its stdin but no reqest body is being written to
+ the cgi. [Jeff Trawick]
+
*) mod_log_config: %c connection status incorrectly logged
as "-" (non-keepalive) when MaxKeepAliveRequests is set to 0.
[Bill Stoddard]
break;
}
}
- shutdown(sd, 1); /* done writing; force EOF on child's stdin */
}
+ /* we're done writing, or maybe we didn't write at all;
+ * force EOF on child's stdin so that the cgi detects end (or
+ * absence) of data
+ */
+ shutdown(sd, 1);
/* Handle script return... */
if (!nph) {