Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A79CC630 for ; Fri, 13 Jul 2012 13:43:38 +0000 (UTC) Received: (qmail 99980 invoked by uid 500); 13 Jul 2012 13:43:36 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 98963 invoked by uid 500); 13 Jul 2012 13:43:35 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 98907 invoked by uid 99); 13 Jul 2012 13:43:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 13:43:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id B59AB142856 for ; Fri, 13 Jul 2012 13:43:34 +0000 (UTC) Date: Fri, 13 Jul 2012 13:43:34 +0000 (UTC) From: "Christian Posta (JIRA)" To: commits@activemq.apache.org Message-ID: <1385273141.48113.1342187014745.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (APLO-221) Documentation Incorrect regarding default credit window for a STOMP subscription MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Christian Posta created APLO-221: ------------------------------------ Summary: Documentation Incorrect regarding default credit window for a STOMP subscription Key: APLO-221 URL: https://issues.apache.org/jira/browse/APLO-221 Project: ActiveMQ Apollo Issue Type: Bug Components: apollo-website Affects Versions: 1.3 Reporter: Christian Posta Priority: Trivial >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) } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira