You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/02/03 23:46:06 UTC
[trafficserver] 11/20: Adjust to actually try a server address more
than once (#7288)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 1094f76a91568e8a57ddf954a17f4eecc00361c7
Author: Susan Hinrichs <sh...@yahoo-inc.com>
AuthorDate: Mon Feb 1 13:04:24 2021 -0600
Adjust to actually try a server address more than once (#7288)
---
proxy/http/HttpTransact.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 9b9e9ce..b89d7f4 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -3746,7 +3746,7 @@ HttpTransact::handle_response_from_server(State *s)
return CallOSDNSLookup(s);
} else if ((s->dns_info.srv_lookup_success || s->host_db_info.is_rr_elt()) &&
(s->txn_conf->connect_attempts_rr_retries > 0) &&
- (s->current.attempts % s->txn_conf->connect_attempts_rr_retries == 0)) {
+ ((s->current.attempts + 1) % s->txn_conf->connect_attempts_rr_retries == 0)) {
delete_server_rr_entry(s, max_connect_retries);
return;
} else {