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

CloseableHttpClient.execute do not close CloseableHttpResponse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.6
    • 4.4 Final
    • HttpClient (classic)
    • None

    Description

      CloseableHttpClient.execute in line 214 contains:

      final HttpResponse response = execute(target, request, context);
      

      The response real type is CloseableHttpResponse so it must be closed before returning result or throwing exception (https://hc.apache.org/httpcomponents-client-ga/quickstart.html)
      Currently it only close InputStream returned from HttpEntity.

      Attachments

        Activity

          People

            Unassigned Unassigned
            soldierkam Marcin Kamionowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: