[ 
https://issues.apache.org/jira/browse/AMQ-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178382#comment-14178382
 ] 

Dejan Bosanac commented on AMQ-5379:
------------------------------------

Hi [~gemmellr]], thanks for these comments. It totally makes sense to do these 
changes. I pushed a commit that now configures producer side with the 
producerCredit property. On the other hand, the size of activemq consumer 
prefetch is dynamically set using the credit supplied in the link flow.

https://github.com/apache/activemq/commit/ab3de0c4c2b8af83090558ebbea4ef91ce04024b

Can you take a look at it and see if does what I mean it does. As link flow is 
sent for every message, I change the prefetch only after credit  reaches 0 and 
if it's different value than the one we have at the moment.

All tests work with this change, but as there are no way to customise the 
prefetch with current proton jms client, I couldn't test more advanced 
scenarios.

> AMQP - allow setting prefetch size
> ----------------------------------
>
>                 Key: AMQ-5379
>                 URL: https://issues.apache.org/jira/browse/AMQ-5379
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: AMQP
>    Affects Versions: 5.10.0
>            Reporter: Dejan Bosanac
>            Assignee: Dejan Bosanac
>             Fix For: 5.11.0
>
>
> Currently the prefetch size is hardcoded to the value of 100



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to