Commit bb6b3fa8 authored by Eric Covener's avatar Eric Covener
Browse files

To be safe, consume the entire brigade after processing an error bucket in

the HTTP output filter.

Submitted by: Rudeiger Pluem
Reviewed by: niq, covener



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@722081 13f79535-47bb-0310-9956-ffa450edef68
parent 843d3942
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2,6 +2,11 @@
Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]

  *) core: When the ap_http_header_filter processes an error bucket, cleanup
     the passed brigade before returning AP_FILTER_ERROR down the filter 
     chain. This unambiguously ensures the same error bucket isn't revisited
     [Ruediger Pluem]

  *) mod_lbmethod_heartbeat: New module to load balance mod_proxy workers
     based on heartbeats. [Paul Querna]

+5 −1
Original line number Diff line number Diff line
@@ -1145,7 +1145,11 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f,
        }
    }
    if (eb) {
        ap_die(eb->status, r);
        int status;

        status = eb->status;
        apr_brigade_cleanup(b);
        ap_die(status, r);
        return AP_FILTER_ERROR;
    }