You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Stefan Fritsch <sf...@sfritsch.de> on 2011/08/08 00:51:57 UTC
Utility functions for resizable buffer
Hi,
I intend to add some utility functions for resizable buffers, which is
a pain to do manually with apr_palloc. For large buffer sizes, the
functions use the allocator directly, which has the advantage that the
memory can be freed before the corresponding pool is destroyed.
The first consumer will be an ap_varbuf_cfg_readline() function that
allows to increase the allowed line length for configuration files and
mod_authz_groupfile's group files.
In case anyone wants to comment on the API before I commit, it is
available here:
http://people.apache.org/~sf/varbuf.diff
Possible further consumers would be mod_substitute and mod_sed.
Cheers,
Stefan