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

Method set_inactivity_timeout

src/proxy/PluginVC.cc:813–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811}
812
813void
814PluginVC::set_inactivity_timeout(ink_hrtime timeout_in)
815{
816 inactive_timeout = timeout_in;
817 if (inactive_timeout != 0) {
818 inactive_timeout_at = ink_get_hrtime() + inactive_timeout;
819 if (inactive_event == nullptr) {
820 inactive_event = eventProcessor.schedule_every(this, HRTIME_SECONDS(1));
821 }
822 } else {
823 inactive_timeout_at = 0;
824 if (inactive_event) {
825 inactive_event->cancel();
826 inactive_event = nullptr;
827 }
828 }
829}
830
831void
832PluginVC::set_default_inactivity_timeout(ink_hrtime timeout_in)

Callers 2

mainEventMethod · 0.45

Calls 3

ink_get_hrtimeFunction · 0.85
schedule_everyMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected