April 11th, 2012, 08:44 AM
I am writing a module (output_filter) to modify the content of web pages. But I get error when using apr_bucket_split() function. The error message says "invalid argument", although I don't see anything wrong in parameters.
stat = apr_bucket_split(e, pos);
if (stat != APR_SUCCESS)
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "$>>>> Error message : %s ", apr_strerror(stat, errbuf, sizeof(errbuf)));
I verified that : 0 < 'pos' value < bucket length
Any idea why does this error come?
Any suggestion is appreciated.
April 12th, 2012, 09:49 AM
No. the problem was with pos value. The pos value was greater than bucket length and that's why the split function was failing.
Originally Posted by eorsavik