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

Function destroyCont

src/tscpp/api/InterceptPlugin.cc:399–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void
400destroyCont(InterceptPlugin::State *state)
401{
402 if (state->net_vc_) {
403 TSVConnShutdown(state->net_vc_, 1, 1);
404 TSVConnClose(state->net_vc_);
405 state->net_vc_ = nullptr;
406 }
407
408 if (state->cont_) {
409 if (state->timeout_action_) {
410 TSActionCancel(state->timeout_action_);
411 state->timeout_action_ = nullptr;
412 }
413 TSContDestroy(state->cont_);
414 state->cont_ = nullptr;
415 }
416}
417} // namespace

Callers 2

handleEventMethod · 0.85
handleEventsFunction · 0.85

Calls 4

TSVConnShutdownFunction · 0.85
TSVConnCloseFunction · 0.85
TSActionCancelFunction · 0.85
TSContDestroyFunction · 0.85

Tested by

no test coverage detected