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

Do not close ConnectionManager in case of Errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 4.5.10
    • None
    • HttpClient (classic)
    • None

    Description

      The MainClientExec closes the connectionManager in the execute method whenever a java error is received. In my case an OutOfMemoryError was thrown. This ended in a client instance no longer usable cause the pool was already shut down. And therefore the real error (OutOfMemoryError) was covered by many "Connection pool shut down" exceptions.

      I agree that the OutOfMemoryError  is a severe issue which should be covered somehow. But closing the pool is unexpected here.

      Is there a chance to remove the closing part and keep the pool running in error case?

      Attachments

        Activity

          People

            Unassigned Unassigned
            sartissohn Thomas Sartissohn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: