The result of rsc->failure_timeout  affects the later logic:
if (effective && search.count != 0 && search.last != 0 && rsc->failure_timeout) {
...
}

which gets the effective fail-count for most of the invocations.