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

Method do_io_close

src/proxy/PluginVC.cc:375–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375void
376PluginVC::do_io_close(int /* flag ATS_UNUSED */)
377{
378 ink_assert(!closed);
379 ink_assert(magic == PLUGIN_VC_MAGIC_ALIVE);
380
381 Dbg(dbg_ctl_pvc, "[%u] %s: do_io_close", core_obj->id, PVC_TYPE);
382
383 SCOPED_MUTEX_LOCK(lock, mutex, this_ethread());
384 if (!closed) { // if already closed, need to do nothing.
385 closed = true;
386
387 // If re-entered then that earlier handler will clean up, otherwise set up a ping
388 // to drive that process (too dangerous to do it here).
389 if (reentrancy_count <= 0) {
390 setup_event_cb(0, &sm_lock_retry_event);
391 }
392 }
393}
394
395void
396PluginVC::do_io_shutdown(ShutdownHowTo_t howto)

Callers 9

kill_no_connectMethod · 0.45
cleanUpMethod · 0.45
ioCompletionEventMethod · 0.45
handle_api_returnMethod · 0.45
mainEventMethod · 0.45
dieMethod · 0.45
read_from_clientMethod · 0.45
ascii_get_eventMethod · 0.45
ascii_set_eventMethod · 0.45

Calls 1

this_ethreadFunction · 0.85

Tested by

no test coverage detected