| 1076 | } |
| 1077 | |
| 1078 | static 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 | |
| 1097 | static void http_proxy_connect_error(CLIENT_ENTRY *entry) |
| 1098 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…