httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject Utility functions for resizable buffer
Date Sun, 07 Aug 2011 22:51:57 GMT
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

Mime
View raw message