Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-604

HttpClient5 double-closes IOSessions for HTTP/1.1 HEAD requests

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0-beta9
    • Component/s: HttpCore NIO
    • Labels:
      None

      Description

      HttpClient5 consistently fails HEAD requests that have the "Connection: close" header on the response because the runtime always attempts to close the IOSession handling the connection twice. The second close triggers a ConnectionClosedException, causing the request to fail.

      For some reason, this only affects HEAD requests. All other HTTP methods work fine.

      I don't have a repro that I can share yet, but I'm working on a fix. I'm letting you know because I don't know if I'll need to make any changes in core (I suspect I will). Can you wait to release beta9 until I have a root cause?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rhernandez Richard Hernandez
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: