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

Method is_down

include/iocore/hostdb/HostDBProcessor.h:239–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239inline bool
240HostDBInfo::is_down(ts_time now, ts_seconds fail_window)
241{
242 auto last_fail = this->last_fail_time();
243 return (last_fail != TS_TIME_ZERO) && (last_fail + fail_window < now);
244}
245
246inline bool
247HostDBInfo::mark_up()

Callers 1

select_best_srvMethod · 0.80

Calls 1

last_fail_timeMethod · 0.95

Tested by

no test coverage detected