Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-5104

Wrong retry count for OSDNSLookup if url_expansions enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.2.0
    • 6.2.1
    • HTTP
    • None

    Description

      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;
      

      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```

      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;
      

      In the HttpTransact::try_to_expand_host_name, it is correct.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              oknet Chao Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h