Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-809

Updating of maximum concurrent requests in RequestLimit works incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0.Beta1, 1.4.1.Final
    • None
    • Core
    • None

    Description

      Looks like there is a bug in setMaximumConcurrentRequests method of io.undertow.server.handlers.RequestLimit class.
      I set new maximum by setMaximumConcurrentRequests, then try retrieve value by getMaximumConcurrentRequests but get 0.

      Looks like the bug in following line:
      newVal = current | newMax & 0xFFFFFFFFL << 32L;

      Should be:
      newVal = current | ((newMax & 0xFFFFFFFFL) << 32L);

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            sshyika Sergii Shyika (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: