| 7468 | } |
| 7469 | |
| 7470 | void |
| 7471 | HttpSM::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 | // |
nothing calls this directly
no test coverage detected