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

Method main_event

plugins/experimental/memcache/tsmemcache.cc:133–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131} // end anonymous namespace
132
133int
134MCAccept::main_event(int event, void *data)
135{
136 if (event == NET_EVENT_ACCEPT) {
137 NetVConnection *netvc = static_cast<NetVConnection *>(data);
138 MC *mc = theMCAllocator.alloc();
139 if (!mutex->thread_holding) {
140 mc->new_connection(netvc, netvc->thread);
141 } else {
142 mc->new_connection(netvc, mutex->thread_holding);
143 }
144 return EVENT_CONT;
145 } else {
146 Fatal("tsmemcache accept received fatal error: errno = %d", -(static_cast<int>((intptr_t)data)));
147 return EVENT_CONT;
148 }
149}
150
151void
152MC::new_connection(NetVConnection *netvc, EThread *thread)

Callers

nothing calls this directly

Calls 2

allocMethod · 0.45
new_connectionMethod · 0.45

Tested by

no test coverage detected