| 552 | } |
| 553 | |
| 554 | static int hc_determine_connection(const char *proxy_function, |
| 555 | proxy_conn_rec *backend, |
| 556 | server_rec *s) |
| 557 | { |
| 558 | proxy_worker *worker = backend->worker; |
| 559 | apr_status_t rv; |
| 560 | |
| 561 | /* |
| 562 | * normally, this is done in ap_proxy_determine_connection(). |
| 563 | * TODO: Look at using ap_proxy_determine_connection() with a |
| 564 | * fake request_rec |
| 565 | */ |
| 566 | rv = ap_proxy_determine_address(proxy_function, backend, |
| 567 | worker->s->hostname_ex, worker->s->port, |
| 568 | 0, NULL, s); |
| 569 | if (rv != APR_SUCCESS) { |
| 570 | ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, s, APLOGNO(03249) |
| 571 | "DNS lookup failure for: %s:%hu", |
| 572 | worker->s->hostname_ex, worker->s->port); |
| 573 | return !OK; |
| 574 | } |
| 575 | |
| 576 | return OK; |
| 577 | } |
| 578 | |
| 579 | static apr_status_t backend_cleanup(const char *proxy_function, proxy_conn_rec *backend, |
| 580 | server_rec *s, int status) |
no test coverage detected