http://marc.info/?l=apache-httpd-dev&m=123910381908293&w=1
+ sf: Has been changed to a pre-cleanup and should be ok now.
+
* MPM event (maybe others, too) closes open files only after the
connection has been closed. This could be fixed in apr-util or httpd:
http://mail-archives.apache.org/mod_mbox/httpd-dev/201005.mbox/<201005172311.39558.sf@sfritsch.de>
* e.g. the parent pool of the request pool. In this case
* eor_bucket_destroy might be called at a point of time when the
* request pool had been already destroyed.
+ * We need to use a pre-cleanup here because a module may create a
+ * sub-pool which is still needed during the log_transaction hook.
*/
- apr_pool_cleanup_register(r->pool, (void *)b, eor_bucket_cleanup,
- apr_pool_cleanup_null);
+ apr_pool_pre_cleanup_register(r->pool, (void *)b, eor_bucket_cleanup);
}
return ap_bucket_eor_make(b, r);
}