Oknet Xu created TS-5104:
----------------------------
Summary: Wrong retry count for OSDNSLookup if url_expansions
enabled
Key: TS-5104
URL: https://issues.apache.org/jira/browse/TS-5104
Project: Traffic Server
Issue Type: Bug
Components: HTTP
Reporter: Oknet Xu
{code}
1674 HttpTransact::OSDNSLookup(State *s)
1675 {
1676 static int max_dns_lookups = 3 +
s->http_config_param->num_url_expansions;
1677 ++s->dns_info.attempts;
{code}
The max_dns_lookups include :
- 1 for origin domain, for example: oknet
- 1 for default expansion, for example: www.oknet.com
- n for url_expansions_string list, for example: oknet.org, oknet.net
Thus, max_dns_lookups should be ```2 +
s->http_config_param->num_url_expansions```
{code}
HttpTransact::HostNameExpansionError_t
6614 HttpTransact::try_to_expand_host_name(State *s)
a165134@andrewhsuInitial commit.
andrewhsu authored on 30 Oct 2009
6615 {
6616 static int max_dns_lookups = 2 +
s->http_config_param->num_url_expansions;
6617 static int last_expansion = max_dns_lookups - 2;
{code}
In the HttpTransact::try_to_expand_host_name, it is correct.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)