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

Function hc_get_backend

modules/proxy/mod_proxy_hcheck.c:597–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597static int hc_get_backend(const char *proxy_function, proxy_conn_rec **backend,
598 proxy_worker *hc, sctx_t *ctx)
599{
600 int status;
601
602 status = ap_proxy_acquire_connection(proxy_function, backend, hc, ctx->s);
603 if (status != OK) {
604 return status;
605 }
606
607 if (strcmp(hc->s->scheme, "https") == 0 || strcmp(hc->s->scheme, "wss") == 0 ) {
608 if (!ap_ssl_has_outgoing_handlers()) {
609 ap_log_error(APLOG_MARK, APLOG_WARNING, 0, ctx->s, APLOGNO(03252)
610 "mod_ssl not configured?");
611 return !OK;
612 }
613 (*backend)->is_ssl = 1;
614 }
615
616 return hc_determine_connection(proxy_function, *backend, ctx->s);
617}
618
619static apr_status_t hc_init_baton(baton_t *baton)
620{

Callers 4

hc_init_batonFunction · 0.85
hc_check_cpingFunction · 0.85
hc_check_tcpFunction · 0.85
hc_check_httpFunction · 0.85

Calls 4

hc_determine_connectionFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected