MCPcopy Create free account
hub / github.com/apache/trafficserver / LookupSkipOpenServer

Method LookupSkipOpenServer

src/proxy/http/HttpTransact.cc:2203–2227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2201}
2202
2203void
2204HttpTransact::LookupSkipOpenServer(State *s)
2205{
2206 // cache will not be looked up. open a connection
2207 // to a parent proxy or to the origin server.
2208 find_server_and_update_current_info(s);
2209
2210 if (s->current.request_to == ResolveInfo::PARENT_PROXY) {
2211 TRANSACT_RETURN(SM_ACTION_DNS_LOOKUP, PPDNSLookupAPICall);
2212 } else if (s->parent_result.result == PARENT_FAIL) {
2213 handle_parent_down(s);
2214 return;
2215 }
2216
2217 ink_assert(s->current.request_to == ResolveInfo::ORIGIN_SERVER);
2218 // ink_assert(s->current.server->ip != 0);
2219
2220 build_request(s, &s->hdr_info.client_request, &s->hdr_info.server_request, s->current.server->http_version);
2221
2222 StateMachineAction_t next = how_to_open_connection(s);
2223 s->next_action = next;
2224 if (next == SM_ACTION_ORIGIN_SERVER_OPEN || next == SM_ACTION_ORIGIN_SERVER_RAW_OPEN) {
2225 TRANSACT_RETURN(next, HttpTransact::HandleResponse);
2226 }
2227}
2228
2229//////////////////////////////////////////////////////////////////////////////
2230// Name : HandleCacheOpenReadPush

Callers

nothing calls this directly

Calls 3

build_requestFunction · 0.85
how_to_open_connectionFunction · 0.85

Tested by

no test coverage detected