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

Function backend_cleanup

modules/proxy/mod_proxy_hcheck.c:579–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579static apr_status_t backend_cleanup(const char *proxy_function, proxy_conn_rec *backend,
580 server_rec *s, int status)
581{
582 if (backend) {
583 backend->close = 1;
584 ap_proxy_release_connection(proxy_function, backend, s);
585 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(03251)
586 "Health check %s Status (%d) for %s.",
587 ap_proxy_show_hcmethod(backend->worker->s->method),
588 status,
589 backend->worker->s->name_ex);
590 }
591 if (status != OK) {
592 return APR_EGENERAL;
593 }
594 return APR_SUCCESS;
595}
596
597static int hc_get_backend(const char *proxy_function, proxy_conn_rec **backend,
598 proxy_worker *hc, sctx_t *ctx)

Callers 3

hc_check_cpingFunction · 0.85
hc_check_tcpFunction · 0.85
hc_check_httpFunction · 0.85

Calls 3

ap_proxy_show_hcmethodFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected