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

Method mainNetEvent

src/iocore/net/NetHandler.cc:323–338  ·  view source on GitHub ↗

The main event for NetHandler

Source from the content-addressed store, hash-verified

321//
322// The main event for NetHandler
323int
324NetHandler::mainNetEvent(int event, Event *e)
325{
326 if (TS_EVENT_MGMT_UPDATE == event) {
327 intptr_t idx = reinterpret_cast<intptr_t>(e->cookie);
328 // Copy to the same offset in the instance struct.
329 config[idx] = global_config[idx];
330 if (config_value_affects_per_thread_value[idx]) {
331 this->configure_per_thread_values();
332 }
333 return EVENT_CONT;
334 } else {
335 ink_assert(trigger_event == e && (event == EVENT_INTERVAL || event == EVENT_POLL));
336 return this->waitForActivity(-1);
337 }
338}
339
340int
341NetHandler::waitForActivity(ink_hrtime timeout)

Callers

nothing calls this directly

Calls 2

waitForActivityMethod · 0.95

Tested by

no test coverage detected