Changes with Apache 2.0.16-dev
+
+ *) Clean up mod_cgid's temporary request pool. Besides fixing a
+ storage leak this ensures that some unnecessary pipes are closed.
+ [Jeff Trawick]
+
*) Performance: Add quick_handler hook. This hook is called at the
very beginning of the request processing before location_walk,
translate_name, etc. This hook is useful for URI keyed content
apr_proc_t *procnew = NULL;
apr_file_t *inout;
-
len = sizeof(unix_addr);
sd2 = accept(sd, (struct sockaddr *)&unix_addr, &len);
if (sd2 < 0) {
in_pipe,
out_pipe,
err_pipe)) != APR_SUCCESS) ||
+ /* XXX apr_procattr_child_*_set() is creating an unnecessary
+ * pipe between this process and the child being created...
+ * It is cleaned up with the temporary pool for this request.
+ */
((rc = apr_procattr_child_err_set(procattr, r->server->error_log, NULL)) != APR_SUCCESS) ||
((rc = apr_procattr_child_in_set(procattr, inout, NULL)) != APR_SUCCESS))) ||
((rc = apr_procattr_child_out_set(procattr, inout, NULL)) != APR_SUCCESS) ||
"couldn't create child process: %d: %s", rc, r->filename);
}
}
+ apr_pool_clear(p);
}
return -1;
}