[
https://issues.apache.org/jira/browse/AMQCPP-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timothy Bish resolved AMQCPP-410.
---------------------------------
Resolution: Fixed
Fix Version/s: 3.5.0
3.4.4
Applied a variant of the fix and added two simple tests. Fix is on trunk and
3.4.x branch.
> prefetchSize=0 is ignored when set via PrefetchPolicy
> -----------------------------------------------------
>
> Key: AMQCPP-410
> URL: https://issues.apache.org/jira/browse/AMQCPP-410
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: CMS Impl
> Affects Versions: 3.4.1, 3.4.3
> Environment: Ubuntu 10.04 x86_64, ActiveMQ 5.5.0
> Reporter: Thomas Riccardi
> Assignee: Timothy Bish
> Fix For: 3.4.4, 3.5.0
>
> Attachments: activemq-cpp-library-3.4.3-src.fix-prefetchSize-0.patch
>
>
> When setting the prefetchSize to 0 via PrefecthPolicy, the value seen by the
> broker is 1000.
> The value is correctly set in ActiveMQConsumer constructor in consumerInfo,
> but is later overwritten to 1000 by applyDestinationOptions(), even if the
> option is not set in the destination options from the broker url.
> applyDestinationOptions() considers 0 as an invalid value, and then forces
> the reading of the value from the destination option, which has the default
> value of 1000.
--
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