You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Graham Leggett <mi...@sharp.fm> on 2006/10/25 02:10:40 UTC

Clarification: apr_bucket_split()

Hi all,

I need some clarification as well on the contract for 
apr_bucket_split(). Are there bucket types that it is not safe to try 
and split?

Can you try a split on any bucket and get reasonable behaviour (ie 
APR_SUCCESS or APR_EIVAL, but not crash)?

Regards,
Graham
--

Re: Clarification: apr_bucket_split()

Posted by Davi Arnaut <da...@haxent.com.br>.
Graham Leggett wrote:
> Hi all,
> 
> I need some clarification as well on the contract for 
> apr_bucket_split(). Are there bucket types that it is not safe to try 
> and split?

Yes, because even those that don't support splits have to implement the
split "method".

> Can you try a split on any bucket and get reasonable behaviour (ie 
> APR_SUCCESS or APR_EIVAL, but not crash)?

Yes. ie: a bucket type that do not support splits must have a noop split
method that returns ENOTIMPL (apr-util/buckets).

--
Davi Arnaut