Gregory Burmistrov wrote:
Hello!

I've had a challenge with mod_perl and mod_xslt under Apache2, the
problem is:

mod_xslt collects buckets from mod_perl for further processing. When
mod_xslt got EOS bucket processing occurs, but some data in buckets
appear to be corrupted.

After few hours with various server configurations, gdb and other fun
stuff, I've found a clue. At least it works for me.

I see what you mean Gregory. But that solution doesn't make me happy. Most of the time you won't need to do that, and forcing a double copy of data on each print call is not an efficient thing to do. Let me ask httpd-dev whether there is a way to mark buckets as something that has to be copied on if set-aside.


!     copy = apr_pmemdup(wb->pool, buf, len);
!     bucket = apr_bucket_transient_create(copy, len, ba);

Also in the future please post unified diffs 'cvs diff -u'. Thanks.



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to