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

Close UA connection early if the origin sent Connection close:, there's a bad Content-Length header, and the UA connection has Keep-Alive.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • HTTP
    • None

    Description

      In a very special case, we could improve the user experience by forcefully closing the connection early. The case is

      1) The origin server sends a Content-Length: header that is wrong, where the CL: value exceeds the actually body size.

      2) The origin server either sends a Connection: close, or it uses HTTP/1.0 without keep-alive.

      3) The client (and TS) uses Keep-Alive to the UA.

      In this case, we can end up stalling the UA until either the UA or the TS connection times out. It might make sense to prematurely disconnect the client when this case is detected.

      Attachments

        Issue Links

          Activity

            People

              shinrich Susan Hinrichs
              zwoop Leif Hedstrom
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: