| 577 | } |
| 578 | |
| 579 | static 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 | |
| 597 | static int hc_get_backend(const char *proxy_function, proxy_conn_rec **backend, |
| 598 | proxy_worker *hc, sctx_t *ctx) |
no test coverage detected