On Mon, 9 Apr 2001, Graham Leggett wrote:

> [EMAIL PROTECTED] wrote:
>
> > This is a bug in your filter.  You must continue to call apr_bucket_read,
> > until you find the LF.  You have been assuming that you will always get an
> > entire string in one bucket.  This is not the case.
>
> This is true - but the extra split of a full [stringLF] into
> [stringLF][] is still a waste.

Yes, it is a waste, but it actually ends up to be a bit cheaper than
checking for it.  Most modules can just ignore if it is a blank bucket.
At least, that was the decision when the code was written.

Ryan

_______________________________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------

Reply via email to