| 793 | } |
| 794 | |
| 795 | void |
| 796 | PluginVC::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 | |
| 813 | void |
| 814 | PluginVC::set_inactivity_timeout(ink_hrtime timeout_in) |
no test coverage detected