MCPcopy Create free account
hub / github.com/acl-dev/acl / http_proxy_connect_timeout

Function http_proxy_connect_timeout

app/jaws/module/mod_http/http_proxy.c:1078–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076}
1077
1078static void http_proxy_connect_timeout(CLIENT_ENTRY *entry)
1079{
1080 const char *myname = "http_proxy_connect_timeout";
1081
1082 if (entry->client == NULL) {
1083 acl_msg_error("%s(%d): client null", myname, __LINE__);
1084 http_proxy_complete((HTTP_CLIENT*) entry, -1);
1085 } else {
1086 acl_msg_error("%s(%d): connect(%s, %s) timeout",
1087 myname, __LINE__, entry->domain_key,
1088 entry->domain_addr);
1089 acl_aio_refer(entry->client);
1090 acl_aio_writen(entry->client, HTTP_CONNECT_TIMEOUT,
1091 (int) strlen(HTTP_CONNECT_TIMEOUT));
1092 acl_aio_unrefer(entry->client);
1093 http_proxy_complete((HTTP_CLIENT*) entry, -1);
1094 }
1095}
1096
1097static void http_proxy_connect_error(CLIENT_ENTRY *entry)
1098{

Callers

nothing calls this directly

Calls 5

acl_msg_errorFunction · 0.85
http_proxy_completeFunction · 0.85
acl_aio_referFunction · 0.85
acl_aio_writenFunction · 0.85
acl_aio_unreferFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…