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

Method select

include/iocore/hostdb/HostDBProcessor.h:275–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275inline bool
276HostDBInfo::select(ts_time now, ts_seconds fail_window) const
277{
278 auto t0 = this->last_fail_time();
279 if (t0 == TS_TIME_ZERO) {
280 return true; // it's alive and so is valid for selection.
281 }
282 // Return true and give it a try if enough time is elapsed since the last failure
283 return (t0 + fail_window < now);
284}
285
286inline void
287HostDBInfo::migrate_from(HostDBInfo::self_type const &that)

Callers 2

select_best_httpMethod · 0.80
select_next_rrMethod · 0.80

Calls 1

last_fail_timeMethod · 0.95

Tested by

no test coverage detected