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

Method setup_client_response_plugin_agents

src/proxy/http/HttpSM.cc:7427–7440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7425}
7426
7427void
7428HttpSM::setup_client_response_plugin_agents(HttpTunnelProducer *p, int num_header_bytes)
7429{
7430 APIHook *agent = txn_hook_get(TS_HTTP_RESPONSE_CLIENT_HOOK);
7431 has_active_response_plugin_agents = agent != nullptr;
7432 while (agent) {
7433 INKVConnInternal *contp = static_cast<INKVConnInternal *>(agent->m_cont);
7434 tunnel.add_consumer(contp, p->vc, &HttpSM::tunnel_handler_plugin_agent, HT_HTTP_CLIENT, "response plugin agent",
7435 num_header_bytes);
7436 // We don't put these in the SM VC table because the tunnel
7437 // will clean them up in do_io_close().
7438 agent = agent->next();
7439 }
7440}
7441
7442void
7443HttpSM::setup_client_request_plugin_agents(HttpTunnelProducer *p, int num_header_bytes)

Callers 2

setup_server_transferMethod · 0.95

Calls 2

add_consumerMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected