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

Function markParentUp

src/proxy/http/HttpTransact.cc:269–281  ·  view source on GitHub ↗

wrapper to choose between a remap next hop strategy or use parent.config remap next hop strategy is preferred

Source from the content-addressed store, hash-verified

267// wrapper to choose between a remap next hop strategy or use parent.config
268// remap next hop strategy is preferred
269inline static void
270markParentUp(HttpTransact::State *s)
271{
272 url_mapping *mp = s->url_map.getMapping();
273 if (s->response_action.handled) {
274 // Do nothing. If a plugin handled the response, let it handle markdown
275 } else if (mp && mp->strategy) {
276 mp->strategy->markNextHop(reinterpret_cast<TSHttpTxn>(s->state_machine), s->parent_result.hostname, s->parent_result.port,
277 NH_MARK_UP);
278 } else if (s->parent_params) {
279 s->parent_params->markParentUp(&s->parent_result);
280 }
281}
282
283// wrapper to choose between a remap next hop strategy or use parent.config
284// remap next hop strategy is preferred

Callers 1

Calls 3

getMappingMethod · 0.80
markNextHopMethod · 0.45
markParentUpMethod · 0.45

Tested by

no test coverage detected