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; |