| 811 | } |
| 812 | |
| 813 | void |
| 814 | PluginVC::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 | |
| 831 | void |
| 832 | PluginVC::set_default_inactivity_timeout(ink_hrtime timeout_in) |
no test coverage detected