serrislew commented on code in PR #12880:
URL: https://github.com/apache/trafficserver/pull/12880#discussion_r2814508218
##########
src/iocore/hostdb/HostDB.cc:
##########
@@ -1324,7 +1324,9 @@ HostDBRecord::select_best_http(ts_time now, ts_seconds
fail_window, sockaddr con
}
}
} else {
- best_alive = &info[0];
+ if (!info[0].is_down(now, fail_window)) {
Review Comment:
do we even need this? if the above conditional starts at the current target
and can't find a valid one, it will return the same thing?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]