apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davi Arnaut <d...@haxent.com.br>
Subject Re: Clarification: apr_bucket_split()
Date Wed, 25 Oct 2006 01:01:38 GMT
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

Mime
View raw message