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

HTTP Header Host ptr field not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • Core
    • None

    Description

      I noticed while lookup at cache scan that the host field of URLImpl is not set correctly.

      the m_ptr_host field is 0x0 while the m_len_host is correct (14).

      here is what it looks like:

      $20 = {<HdrHeapObjImpl> =

      {m_type = 2, m_length = 120, m_obj_flags = 0}

      , m_len_scheme = 4,
      m_len_user = 0, m_len_password = 0, m_len_host = 14, m_len_port = 0, m_len_path = 0,
      m_len_params = 27, m_len_query = 0, m_len_fragment = 0, m_len_printed_string = 0,
      m_ptr_scheme = 0x0,
      m_ptr_user = 0x7ffff2fe9d2f "http://www.google.com/intl/en_ALL/images/logo.gif HTTP/1.1\r\nHost: www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept: image/png,im"..., m_ptr_password = 0x0,
      m_ptr_host = 0x0,
      m_ptr_port = 0x7ffff2fe9d36 "www.google.com/intl/en_ALL/images/logo.gif HTTP/1.1\r\nHost: www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept: image/png,image/*;q"..., m_ptr_path = 0x0,
      m_ptr_params = 0x7ffff2fe9d45 "intl/en_ALL/images/logo.gif HTTP/1.1\r\nHost: www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept: image/png,image/;q=0.8,/*;q=0.5\r"..., m_ptr_query = 0x0,
      m_ptr_fragment = 0x0, m_ptr_printed_string = 0x0, clean = false, m_scheme_wks_idx = 0,
      m_port = 0, m_url_type = 0 '\000', m_type_code = 0 '\000', m_capacity_host = 1}

      Attachments

        Issue Links

          Activity

            People

              jplevyak John Plevyak
              jplevyak John Plevyak
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: