| 155 | } |
| 156 | |
| 157 | inline bool |
| 158 | NetTimeout::is_active_timeout_expired(ink_hrtime now) |
| 159 | { |
| 160 | ink_assert(now > 0); |
| 161 | |
| 162 | if (_active_timeout_in == 0) { |
| 163 | return false; |
| 164 | } |
| 165 | |
| 166 | if (0 < _next_active_timeout_at && _next_active_timeout_at < now) { |
| 167 | Dbg(_dbg_ctl(), "active timeout cont=%p now=%" PRId64 " timeout_at=%" PRId64 " timeout_in=%" PRId64, this, |
| 168 | ink_hrtime_to_sec(now), ink_hrtime_to_sec(_next_active_timeout_at), ink_hrtime_to_sec(_active_timeout_in)); |
| 169 | return true; |
| 170 | } |
| 171 | |
| 172 | return false; |
| 173 | } |
| 174 | |
| 175 | inline bool |
| 176 | NetTimeout::is_inactive_timeout_expired(ink_hrtime now) |
no test coverage detected