MCPcopy Create free account
hub / github.com/apache/httpd / ap_proxy_backend_broke

Function ap_proxy_backend_broke

modules/proxy/proxy_util.c:4268–4286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4266}
4267
4268PROXY_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.

Callers 4

mod_proxy.hFile · 0.85
mod_proxy_uwsgi.cFile · 0.85
ap_proxy_ajp_requestFunction · 0.85

Calls 1

ap_bucket_error_createFunction · 0.85

Tested by

no test coverage detected