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

Method set_active_timeout

src/proxy/PluginVC.cc:795–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795void
796PluginVC::set_active_timeout(ink_hrtime timeout_in)
797{
798 active_timeout = timeout_in;
799
800 // FIX - Do we need to handle the case where the timeout is set
801 // but no io has been done?
802 if (active_event) {
803 ink_assert(!active_event->cancelled);
804 active_event->cancel();
805 active_event = nullptr;
806 }
807
808 if (active_timeout > 0) {
809 active_event = eventProcessor.schedule_in(this, active_timeout);
810 }
811}
812
813void
814PluginVC::set_inactivity_timeout(ink_hrtime timeout_in)

Callers 1

TSVConnActiveTimeoutSetFunction · 0.45

Calls 2

cancelMethod · 0.45
schedule_inMethod · 0.45

Tested by

no test coverage detected