Commit 7449f058 authored by Yann Ylavic's avatar Yann Ylavic
Browse files

http: release data buckets (memory, fd, ...) as soon as possible when

filtered out from the outgoing brigade by ap_http_outerror_filter() applying
the EOC semantic.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1774322 13f79535-47bb-0310-9956-ffa450edef68
parent fecbeef0
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1806,12 +1806,12 @@ apr_status_t ap_http_outerror_filter(ap_filter_t *f,
     *              EOS bucket.
     */
    if (ctx->seen_eoc) {
        for (e = APR_BRIGADE_FIRST(b);
             e != APR_BRIGADE_SENTINEL(b);
             e = APR_BUCKET_NEXT(e))
        {
            if (!APR_BUCKET_IS_METADATA(e)) {
                APR_BUCKET_REMOVE(e);
        e = APR_BRIGADE_FIRST(b);
        while (e != APR_BRIGADE_SENTINEL(b)) {
            apr_bucket *c = e;
            e = APR_BUCKET_NEXT(e);
            if (!APR_BUCKET_IS_METADATA(c)) {
                apr_bucket_delete(c);
            }
        }
    }