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

Timeout increment logic is incorrect

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1
    • 3.0
    • Transport
    • None
    • Windows

    Description

      The logic in CompositeTransportChannel.establishConnection appears incorrcet.

      ...
      if (incrementTimeout && time < maximumTimeout)

      { time *= 2; time = time > maximumTimeout ? maximumTimeout : timeout; }

      ...

      should be:

      ...
      if (incrementTimeout && time < maximumTimeout)

      { time *= 2; time = time > maximumTimeout ? maximumTimeout : time; }

      Otherwise if zeroconfig fails to get a connection, the sleep time is approx. 30s.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            neil@cloudnine.net.nz Neil Clayton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment