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

traffic server loops forever if the origin sends back a 505 and the connection is keep-alive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8
    • 2.1.9
    • HTTP
    • None
    • This was observed in the Yahoo! version of traffic server

    Description

      Traffic server tries to downgrade the connection/protocol when it gets back a 505 from the origin server. First it removes keep-alive and retries, then traffic sever start to downgrade the http protocol version and retry.

      However, another part of the code turns keep-alive back on and traffic server will loop turning on and off keep-alive and making the same request to the origin server.

      I fixed the issue in the Yahoo! tree by alway downgrade keep-alive and protocol version together. This will eventually stop after it has tried HTTP/0.9. Also, I added an option to not downgrade and retry at all when getting a 505.

      I have to verify that this is also an issue with the Apache tree. I looked over the code and it doesn't look like it changed at all from the Yahoo! tree, so the bug should also be there.

      Attachments

        Activity

          People

            bcall Bryan Call
            bcall Bryan Call
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: