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

Add javadoc to Executor to explain that response must be handled to avoid connection leakage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.2.2
    • Fluent HC

    Description

      Some javadoc should be added to the Fluent HC, so that developers are made aware that they need to handle a reponse from an Executor.
      I had a case where I did a logout call, and I did not care to handle the response, because I was not interested if the logout succeeded or not. This then leads to one http connection never being returned to the pool per logout call I made. So I had to change my code so I called discardContent on the Executor.

      So some javadoc should be added to the Executor and Response classes in client.fluent package

      Attachments

        1. 1235.txt
          2 kB
          Alf Høgemark

        Activity

          People

            Unassigned Unassigned
            hogemark Alf Høgemark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: