View | Details | Raw Unified | Return to bug 55475
Collapse All | Expand All

(-)modules/http/http_filters.c (-1 / +4 lines)
Lines 1610-1618 apr_status_t ap_http_outerror_filter(ap_filter_t * Link Here
1610
             * Start of error handling state tree. Just one condition
1610
             * Start of error handling state tree. Just one condition
1611
             * right now :)
1611
             * right now :)
1612
             */
1612
             */
1613
            if (((ap_bucket_error *)(e->data))->status == HTTP_BAD_GATEWAY) {
1613
            switch (((ap_bucket_error *)(e->data))->status) {
1614
            case HTTP_BAD_GATEWAY:
1615
            case HTTP_GATEWAY_TIME_OUT:
1614
                /* stream aborted and we have not ended it yet */
1616
                /* stream aborted and we have not ended it yet */
1615
                r->connection->keepalive = AP_CONN_CLOSE;
1617
                r->connection->keepalive = AP_CONN_CLOSE;
1618
                break;
1616
            }
1619
            }
1617
            continue;
1620
            continue;
1618
        }
1621
        }
(-)modules/http/chunk_filter.c (-9 / +11 lines)
Lines 72-86 apr_status_t ap_http_chunk_filter(ap_filter_t *f, Link Here
72
                eos = e;
72
                eos = e;
73
                break;
73
                break;
74
            }
74
            }
75
            if (AP_BUCKET_IS_ERROR(e)
75
            if (AP_BUCKET_IS_ERROR(e)) {
76
                && (((ap_bucket_error *)(e->data))->status
76
                switch (((ap_bucket_error *)(e->data))->status) {
77
                    == HTTP_BAD_GATEWAY)) {
77
                case HTTP_BAD_GATEWAY:
78
                /*
78
                case HTTP_GATEWAY_TIME_OUT:
79
                 * We had a broken backend. Memorize this in the filter
79
                    /*
80
                 * context.
80
                     * We had a broken backend. Memorize this in the filter
81
                 */
81
                     * context.
82
                f->ctx = &bad_gateway_seen;
82
                     */
83
                continue;
83
                    f->ctx = &bad_gateway_seen;
84
                    continue;
85
                }
84
            }
86
            }
85
            if (APR_BUCKET_IS_FLUSH(e)) {
87
            if (APR_BUCKET_IS_FLUSH(e)) {
86
                flush = e;
88
                flush = e;

Return to bug 55475