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

Function hc_check_tcp

modules/proxy/mod_proxy_hcheck.c:701–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701static apr_status_t hc_check_tcp(baton_t *baton)
702{
703 int status;
704 sctx_t *ctx = baton->ctx;
705 proxy_worker *hc = baton->hc;
706 proxy_conn_rec *backend = NULL;
707
708 status = hc_get_backend("HCTCP", &backend, hc, ctx);
709 if (status == OK) {
710 status = ap_proxy_connect_backend("HCTCP", backend, hc, ctx->s);
711 /* does an unconditional ap_proxy_is_socket_connected() */
712 }
713 return backend_cleanup("HCTCP", backend, ctx->s, status);
714}
715
716static int hc_send(request_rec *r, const char *out, apr_bucket_brigade *bb)
717{

Callers 1

hc_checkFunction · 0.85

Calls 3

hc_get_backendFunction · 0.85
ap_proxy_connect_backendFunction · 0.85
backend_cleanupFunction · 0.85

Tested by

no test coverage detected