Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6397

Configure HTTP timeouts in HttpClientTransport for receive in addition to send

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.11.0, 5.14.0
    • Fix Version/s: 5.14.1, 5.15.0
    • Component/s: Transport
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      Patch

      Description

      We've experienced a situation where when creating a connection, the thread is stuck in a socket read during the HTTP HEAD call to the broker from HttpClientTransport:

      httpClient.execute(httpMethod, new BasicResponseHandler());
      

      After reading through the usage of HttpClient, it looks as though soTimeout is only set on the sent HttpClient instances, not the receive. This patch adds the timeout to both.

        Attachments

        1. patchfile.txt
          1 kB
          Nate Klein

          Activity

            People

            • Assignee:
              cshannon Christopher L. Shannon
              Reporter:
              nklein Nate Klein
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: