Commit 349b3fbd authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

mod_bucketeer needs to preserve error buckets if it sees them rather

than silently discarding them.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95412 13f79535-47bb-0310-9956-ffa450edef68
parent 483b149b
Loading
Loading
Loading
Loading
+8 −0
Changes for modules/test/mod_bucketeer.c: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@
#include "util_filter.h"
#include "apr_buckets.h"
#include "http_request.h"
#include "http_protocol.h"

static const char bucketeerFilterName[] = "BUCKETEER";
module AP_MODULE_DECLARE_DATA bucketeer_module;
@@ -140,6 +141,13 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f,
            continue;
        }

        if (AP_BUCKET_IS_ERROR(e)) {     
            apr_bucket *err_copy;
            apr_bucket_copy(e, &err_copy);
            APR_BRIGADE_INSERT_TAIL(ctx->bb, err_copy);
            continue;
        }

        /* read */
        apr_bucket_read(e, &data, &len, APR_BLOCK_READ);