summaryrefslogtreecommitdiffstats
path: root/include/http_core.h
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-09-12 14:52:48 +0200
committerStefan Fritsch <sf@apache.org>2010-09-12 14:52:48 +0200
commitfb36cd85853fcec5355960d40db101c650afd485 (patch)
treeb250bb6c65d9e8b234b753675afbe9260720f669 /include/http_core.h
parentreadability fix, as suggested by Ruediger Pluem (diff)
downloadapache2-fb36cd85853fcec5355960d40db101c650afd485.tar.xz
apache2-fb36cd85853fcec5355960d40db101c650afd485.zip
add comment about (not) using pools in error log format handlers
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@996306 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--include/http_core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/http_core.h b/include/http_core.h
index affd42a6ad..9c8fa9e1b2 100644
--- a/include/http_core.h
+++ b/include/http_core.h
@@ -694,6 +694,10 @@ typedef struct ap_errorlog_info {
/**
* callback function prototype for a external errorlog handler
+ * @note To avoid unbounded memory usage, these functions must not allocate
+ * memory from the server, connection, or request pools. If an errorlog
+ * handler absolutely needs a pool to pass to other functions, it must create
+ * and destroy a sub-pool.
*/
typedef int ap_errorlog_handler_fn_t(const ap_errorlog_info *info,
const char *arg, char *buf, int buflen);