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

Function hc_determine_connection

modules/proxy/mod_proxy_hcheck.c:554–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554static 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
579static apr_status_t backend_cleanup(const char *proxy_function, proxy_conn_rec *backend,
580 server_rec *s, int status)

Callers 1

hc_get_backendFunction · 0.85

Calls 2

ap_log_errorFunction · 0.50

Tested by

no test coverage detected