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

Method state_send_accept_failed

src/proxy/PluginVC.cc:1086–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1084}
1085
1086int
1087PluginVCCore::state_send_accept_failed(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */)
1088{
1089 if (connect_to->mutex == nullptr) {
1090 connect_to->handleEvent(NET_EVENT_ACCEPT_FAILED, nullptr);
1091 destroy();
1092 } else {
1093 MUTEX_TRY_LOCK(lock, connect_to->mutex, this_ethread());
1094
1095 if (lock.is_locked()) {
1096 connect_to->handleEvent(NET_EVENT_ACCEPT_FAILED, nullptr);
1097 destroy();
1098 } else {
1099 SET_HANDLER(&PluginVCCore::state_send_accept_failed);
1100 eventProcessor.schedule_in(this, PVC_LOCK_RETRY_TIME);
1101 }
1102 }
1103
1104 return 0;
1105}
1106
1107int
1108PluginVCCore::state_send_accept(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */)

Callers

nothing calls this directly

Calls 3

this_ethreadFunction · 0.85
handleEventMethod · 0.45
schedule_inMethod · 0.45

Tested by

no test coverage detected