Uploaded image for project: 'ActiveMQ Apollo (Retired)'
  1. ActiveMQ Apollo (Retired)
  2. APLO-221

Documentation Incorrect regarding default credit window for a STOMP subscription

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.3
    • 1.5
    • apollo-website
    • None

    Description

      From the docs on page: http://activemq.apache.org/apollo/documentation/user-manual.html#Subscription_Flow_Control:

      "If the credit header is not specified it has the same effect as if it had been set to credit:1,65536"

      According to this code, it would default to credit:655360,655360:

      (StompProtocolHandler.on_stomp_subscribe()):

      val credit_window = get(headers, CREDIT) match {
      case Some(value) =>
      value.toString.split(",").toList match

      { case x :: Nil => InitialCreditWindow(x.toInt, buffer_size, true) case x :: y :: Nil => InitialCreditWindow(x.toInt, y.toInt, true) case x :: y :: z :: _ => InitialCreditWindow(x.toInt, y.toInt, z.toBoolean) case _ => InitialCreditWindow(buffer_size, buffer_size, true) }

      case None =>
      InitialCreditWindow(buffer_size, buffer_size, true)
      }

      Attachments

        Activity

          People

            chirino Hiram R. Chirino
            ceposta Christian Posta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: