httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: [PATCH] why is this missing from ap_getline()?
Date Wed, 28 Feb 2001 23:08:42 GMT
apr_bucket_delete() does a REMOVE and a destroy.


On Wed, Feb 28, 2001 at 05:46:58PM -0500, 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 | trawickj@bellsouth.net | PGP public key at web site:
>        http://www.geocities.com/SiliconValley/Park/9289/
>              Born in Roswell... married an alien...

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message