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

Method destroy

src/proxy/PluginVC.cc:1032–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032void
1033PluginVCCore::destroy()
1034{
1035 Dbg(dbg_ctl_pvc, "[%u] Destroying PluginVCCore at %p", id, this);
1036
1037 ink_assert(active_vc.closed == true || !connected);
1038 active_vc.mutex = nullptr;
1039 active_vc.read_state.vio.buffer.clear();
1040 active_vc.write_state.vio.buffer.clear();
1041 active_vc.magic = PLUGIN_VC_MAGIC_DEAD;
1042
1043 ink_assert(passive_vc.closed == true || !connected);
1044 passive_vc.mutex = nullptr;
1045 passive_vc.read_state.vio.buffer.clear();
1046 passive_vc.write_state.vio.buffer.clear();
1047 passive_vc.magic = PLUGIN_VC_MAGIC_DEAD;
1048
1049 this->mutex = nullptr;
1050 delete this;
1051}
1052
1053PluginVC *
1054PluginVCCore::connect()

Callers 4

cleanUpMethod · 0.45
fFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by 1

fFunction · 0.36