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

Method plugin_agents_cleanup

src/proxy/http/HttpSM.cc:7470–7492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7468}
7469
7470void
7471HttpSM::plugin_agents_cleanup()
7472{
7473 // If this is set then all of the plugin agent VCs were put in
7474 // the VC table and cleaned up there. This handles the case where
7475 // something went wrong early.
7476 if (!has_active_response_plugin_agents) {
7477 APIHook *agent = txn_hook_get(TS_HTTP_RESPONSE_CLIENT_HOOK);
7478 while (agent) {
7479 INKVConnInternal *contp = static_cast<INKVConnInternal *>(agent->m_cont);
7480 contp->do_io_close();
7481 agent = agent->next();
7482 }
7483 }
7484 if (!has_active_request_plugin_agents) {
7485 APIHook *agent = txn_hook_get(TS_HTTP_REQUEST_CLIENT_HOOK);
7486 while (agent) {
7487 INKVConnInternal *contp = static_cast<INKVConnInternal *>(agent->m_cont);
7488 contp->do_io_close();
7489 agent = agent->next();
7490 }
7491 }
7492}
7493
7494//////////////////////////////////////////////////////////////////////////
7495//

Callers

nothing calls this directly

Calls 2

do_io_closeMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected