April 12th, 2012, 09:49 AM
Join Date: Apr 2012
Time spent in forums: 25 m 30 sec
Reputation Power: 0
Originally Posted by eorsavik
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.
No. the problem was with pos value. The pos value was greater than bucket length and that's why the split function was failing.