[
https://issues.apache.org/jira/browse/TS-5104?focusedWorklogId=34047&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-34047
]
ASF GitHub Bot logged work on TS-5104:
--------------------------------------
Author: ASF GitHub Bot
Created on: 22/Dec/16 15:28
Start Date: 22/Dec/16 15:28
Worklog Time Spent: 10m
Work Description: Github user oknet commented on the issue:
https://github.com/apache/trafficserver/pull/1272
The url expansion feature has removed from 7.0.x. only fix it in 6.2.x
branch.
Issue Time Tracking
-------------------
Worklog Id: (was: 34047)
Time Spent: 10m
Remaining Estimate: 0h
> 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
> Affects Versions: 6.2.0
> Reporter: Oknet Xu
> Fix For: 6.2.1
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {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)