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

Method state_send_accept

src/proxy/PluginVC.cc:1107–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105}
1106
1107int
1108PluginVCCore::state_send_accept(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */)
1109{
1110 if (connect_to->mutex == nullptr) {
1111 connect_to->handleEvent(NET_EVENT_ACCEPT, &passive_vc);
1112 } else {
1113 MUTEX_TRY_LOCK(lock, connect_to->mutex, this_ethread());
1114
1115 if (lock.is_locked()) {
1116 connect_to->handleEvent(NET_EVENT_ACCEPT, &passive_vc);
1117 } else {
1118 SET_HANDLER(&PluginVCCore::state_send_accept);
1119 eventProcessor.schedule_in(this, PVC_LOCK_RETRY_TIME);
1120 }
1121 }
1122
1123 return 0;
1124}
1125
1126// void PluginVCCore::attempt_delete()
1127//

Callers

nothing calls this directly

Calls 3

this_ethreadFunction · 0.85
handleEventMethod · 0.45
schedule_inMethod · 0.45

Tested by

no test coverage detected