Re: ap_save_brigade

2013-07-22 Thread dorian taylor
OK, I have a clue why ap_save_brigade wasn't implemented. I looked at its source and it basically does this: # XXX UNTESTED CODE sub Apache2::Filter::save_brigade { my ($f, $saveto, $bb, $pool) = @_; # XXX should this be $f->r->pool? $pool ||= $f->c->pool; my

ap_save_brigade

2013-07-22 Thread dorian taylor
Hello, Is there a reason why ap_save_brigade hasn't been implemented? Does it have special needs? (Funnily, after googling this issue, I found I had asked the same question in 2005: http://mail-archives.apache.org/mod_mbox/perl-modperl/200505.mbox/%3c20050509222133.gb31...@foobarsystems.c

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-17 Thread Dorian Taylor
> I'm not getting very far with this, Dorian. Neither httpd-dev nor apr-dev > are taking it anywhere. So at the moment ap_save_brigade is sort of an > unstable API, so other developers think we shouldn't expose it in the core > API. So at the moment you have two

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-17 Thread Stas Bekman
Dorian Taylor wrote: I'm not getting very far with this, Dorian. Neither httpd-dev nor apr-dev are taking it anywhere. So at the moment ap_save_brigade is sort of an unstable API, so other developers think we shouldn't expose it in the core API. So at the moment you have two options:

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-12 Thread Stas Bekman
Stas Bekman wrote: Dorian Taylor wrote: it'd be nice to run a benchmark. I wonder why ap_save_brigade was marked as ! in the map file. Which normally means it's not going to be exposed. Did you by chance look at the archives for possible references to it? there's a mention o

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Stas Bekman
Dorian Taylor wrote: it'd be nice to run a benchmark. I wonder why ap_save_brigade was marked as ! in the map file. Which normally means it's not going to be exposed. Did you by chance look at the archives for possible references to it? there's a mention of it in the APR::Bu

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Dorian Taylor
> it'd be nice to run a benchmark. I wonder why ap_save_brigade was marked > as ! in the map file. Which normally means it's not going to be exposed. > Did you by chance look at the archives for possible references to it? there's a mention of it in the APR::Bucket

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Stas Bekman
thought. when i wrote this i just wanted to make it go. it'd be nice to run a benchmark. I wonder why ap_save_brigade was marked as ! in the map file. Which normally means it's not going to be exposed. Did you by chance look at the archives for

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Dorian Taylor
> How is that related? i think that's some cargo culting that i didn't clean up. that can be disregarded. > So you think this approach will be faster than flattening bb on each > filter invocation and concatenating the scalar? honestly i didn't give it any thought. when i wrote this i just want

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Stas Bekman
brigade *saveto, + apr_bucket_brigade *bb, + apr_pool_t *p) +{ +apr_status_t rc = ap_save_brigade(f, &saveto, &bb, p); +/* if users don't bother to check the success, do it on their + * behalf */ +

[mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Dorian Taylor
apr_status_t rc = ap_save_brigade(f, &saveto, &bb, p); +/* if users don't bother to check the success, do it on their + * behalf */ +if (GIMME_V == G_VOID && rc != APR_SUCCESS) { +modperl_croak(aTHX_ rc, "Apache::Filter::save_brigade"); +} + +

Re: [mp2] erratum: ap_bucket_save should be ap_save_brigade

2005-02-10 Thread Stas Bekman
Dorian Taylor wrote: same issue, now with a function that exists. ;) Dorian, I still don't understand what are you talking about. Neither of the two is a part of the mod_perl 2 API. Perhaps if you show us the error message you are getting it'll be more clear. -- _

[mp2] erratum: ap_bucket_save should be ap_save_brigade

2005-02-10 Thread Dorian Taylor
same issue, now with a function that exists. ;)