httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sami Tikka <>
Subject Re: misuse of apr_brigade_destroy()?
Date Sat, 29 Nov 2003 02:41:10 GMT
Jeff Trawick wrote:

> Glenn wrote:
>> On Sun, Nov 23, 2003 at 11:09:47AM -0500, Jeff Trawick wrote:
>>> Glenn wrote:
>> Does that mean that it is incorrect to call apr_brigade_destroy() on
>> a brigade that you have passed?  There are a number of places in the
>> code that do this.
> yes; where is that code?

mod_proxy_http seems to reuse a brigade it has passed. See the last 
while loop at the end of ap_proxy_http_process_response in proxy_http.c

When I was writing an output filter which passed another brigade than 
the one given as parameter, I wondered should I apr_brigade_destroy or 
apr_brigade_cleanup it. I noticed mod_proxy keeps reusing the brigade, 
so I decided it was safer to cleanup than destroy.

View raw message