Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1073

cache module generates exceptions for non-compliant responses without consuming response bodies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1 Beta1, 4.1 Final, 4.1.1, 4.2 Final
    • 4.1.2, 4.2 Alpha1
    • HttpCache
    • None

    Description

      In the ResponseProtocolCompliance class, the caching module checks the incoming origin response to attempt to make it compliant with RFC2616. However, if there are instances where this is not possible, it currently throws an exception without consuming the origin response body; this causes a connection leak if the general try..catch..finally pattern documented on the HttpClient interface Javadoc is followed.

      Attachments

        1. 1073.patch
          10 kB
          Jonathan Moore

        Activity

          People

            jonm Jonathan Moore
            jonm Jonathan Moore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: