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

Method is_active_timeout_expired

include/iocore/net/NetTimeout.h:157–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157inline bool
158NetTimeout::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
175inline bool
176NetTimeout::is_inactive_timeout_expired(ink_hrtime now)

Callers 1

check_activityMethod · 0.45

Calls 1

ink_hrtime_to_secFunction · 0.85

Tested by

no test coverage detected