httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r996306 - /httpd/httpd/trunk/include/http_core.h
Date Sun, 12 Sep 2010 12:52:48 GMT
Author: sf
Date: Sun Sep 12 12:52:48 2010
New Revision: 996306

URL: http://svn.apache.org/viewvc?rev=996306&view=rev
Log:
add comment about (not) using pools in error log format handlers

Modified:
    httpd/httpd/trunk/include/http_core.h

Modified: httpd/httpd/trunk/include/http_core.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/http_core.h?rev=996306&r1=996305&r2=996306&view=diff
==============================================================================
--- httpd/httpd/trunk/include/http_core.h (original)
+++ httpd/httpd/trunk/include/http_core.h Sun Sep 12 12:52:48 2010
@@ -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);



Mime
View raw message