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

Configure HTTP timeouts in HttpClientTransport for receive in addition to send

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.11.0, 5.14.0
    • 5.14.1, 5.15.0
    • Transport
    • None
    • Patch Available
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: