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

Typo in HttpSessionManger would cause ATS reuse wrong session to origin server.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • HTTP

    Description

      There is a typo in HttpSessionManger

      (ats_ip_addr_eq(&s->server_ip.sa, addr) && ats_ip_port_cast(addr) == ats_ip_port_cast(addr)))

      The fix would be

          -          (ats_ip_addr_eq(&s->server_ip.sa, addr) && ats_ip_port_cast(addr) == ats_ip_port_cast(addr)))
          +          (ats_ip_addr_eq(&s->server_ip.sa, addr) && ats_ip_port_cast(&s->server_ip.sa) == ats_ip_port_cast(addr)))
      

      This typo skip the port check, so if requests to same origin server would use one same session even though different port.

      Which would cause ATS-5.0 reuse wrong session to origin.

      Attachments

        Activity

          People

            bcall Bryan Call
            Kang Li kang li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: