Changes with Apache 2.0.44
-
+
+ *) Terminate CGI scripts when the client connection drops. This
+ fix only applies to some normal paths in mod_cgi. mod_cgid
+ is still busted. PR 8388 [Jeff Trawick]
+
*) Fix a bug where 416 "Range not satisfiable" was being
returned for content that should have been redirected.
[Greg Ames]
return HTTP_MOVED_TEMPORARILY;
}
- ap_pass_brigade(r->output_filters, bb);
+ rv = ap_pass_brigade(r->output_filters, bb);
+
+ /* don't soak up script output if errors occurred
+ * writing it out... otherwise, we prolong the
+ * life of the script when the connection drops
+ * or we stopped sending output for some other
+ * reason
+ */
+ if (rv == APR_SUCCESS && !r->connection->aborted) {
+ log_script_err(r, script_err);
+ }
- log_script_err(r, script_err);
apr_file_close(script_err);
}