apr_bucket_delete does the remove and the destroy.  You are confusing it
with apr_bucket_destroy, which requires an explicit remove.

The delete function is new in the last week.

Ryan

On Wed, 28 Feb 2001, Jeff Trawick wrote:

> What am I missing?  It looks to me that APR_BUCKET_REMOVE() is
> critical here.  I must be confused.
>
> Index: server/protocol.c
> ===================================================================
> RCS file: /home/cvspublic/httpd-2.0/server/protocol.c,v
> retrieving revision 1.2
> diff -u -r1.2 protocol.c
> --- server/protocol.c 2001/02/28 15:13:30     1.2
> +++ server/protocol.c 2001/02/28 22:46:29
> @@ -526,6 +526,7 @@
>          }
>          e = APR_BRIGADE_FIRST(b);
>          if (e->length == 0) {
> +            APR_BUCKET_REMOVE(e);
>              apr_bucket_delete(e);
>              continue;
>          }
>
>
> --
> Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
>        http://www.geocities.com/SiliconValley/Park/9289/
>              Born in Roswell... married an alien...
>
>


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

Reply via email to