| 4266 | } |
| 4267 | |
| 4268 | PROXY_DECLARE(void) ap_proxy_backend_broke(request_rec *r, |
| 4269 | apr_bucket_brigade *brigade) |
| 4270 | { |
| 4271 | apr_bucket *e; |
| 4272 | conn_rec *c = r->connection; |
| 4273 | |
| 4274 | r->no_cache = 1; |
| 4275 | /* |
| 4276 | * If this is a subrequest, then prevent also caching of the main |
| 4277 | * request. |
| 4278 | */ |
| 4279 | if (r->main) |
| 4280 | r->main->no_cache = 1; |
| 4281 | e = ap_bucket_error_create(HTTP_BAD_GATEWAY, NULL, c->pool, |
| 4282 | c->bucket_alloc); |
| 4283 | APR_BRIGADE_INSERT_TAIL(brigade, e); |
| 4284 | e = apr_bucket_eos_create(c->bucket_alloc); |
| 4285 | APR_BRIGADE_INSERT_TAIL(brigade, e); |
| 4286 | } |
| 4287 | |
| 4288 | /* |
| 4289 | * Provide a string hashing function for the proxy. |
no test coverage detected