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

Change exception message when timeout getting connection from pool

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.2.2
    • HttpClient (classic)
    • None

    Description

      I experienced a situation where the connection pool could not open any more connections, and then I got a timeout exception. My server logs only displayed the exception message, so I only saw :
      "Timeout waiting for connection".
      Because there were also some slight network problems, I originally believed that the exception was caused by the "Connection timeout period" set on the http connection had passed, and that the server I tried to reach had not accepted the connection quickly enough.

      But later on I figured out it was the connection pool.

      So I suggest to change the exception message from :
      "Timeout waiting for connection"
      to
      "Timeout waiting for connection from pool"

      to make it clear that it is a pool timeout and not a network connect timeout.

      Attachments

        1. 1236.txt
          1 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: