httpd-dev mailing list archives

On Thu, 9 Aug 2001, Doug MacEachern wrote:
> and another issue where input filter on POST data
> is not working (modperl-2.0/t/filter/TestFilter/input_body.pm). i've
> tried debugging, but of course the test works when stepping with
> gdb. socket_read gets all the headers and POST data in one gulp when i'm
> stepping, otherwise gets it in two (headers and post data), and somehow
> the post data gets lost. dunno if either is considered a showstopper
> though.
well, i found a solution when writing a c version of the test.
APR_BRIGADE_FOREACH(bucket, bb) {
...
}
does not work, but this does:
while (!APR_BRIGADE_EMPTY(bb)) {
bucket = APR_BRIGADE_FIRST(bb);
...
if (APR_BUCKET_IS_EOS(bucket)) {
break;
}
}
i've seen other cases of this, in ssl_engine_io.c for example:
/* XXX: shame that APR_BRIGADE_FOREACH doesn't work here */
what's up with that?