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

Skip HostDB lookup for all address literals

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • sometime
    • Core, DNS

    Description

      In HttpSM.cc:

          if ((strncmp(t_state.dns_info.lookup_name, "127.0.0.1", 9) == 0 || strncmp(t_state.dns_info.lookup_name, "::1", 3) == 0) &&
              ats_ip_pton(t_state.dns_info.lookup_name, t_state.host_db_info.ip()) == 0) {
            // If it's 127.0.0.1 or ::1 don't bother with hostdb
            DebugSM("dns", "[HttpTransact::HandleRequest] Skipping DNS lookup for %s because it's loopback",
                    t_state.dns_info.lookup_name);
            t_state.dns_info.lookup_success = true;
            call_transact_and_set_next_state(NULL);
            break;
      

      There's no reason to restrict address literals to loopback. It seems like we should be able to do this for all address literals.

      Attachments

        Issue Links

          Activity

            People

              davidbz David Ben Zakai
              jamespeach James Peach
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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