qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: more memory "leak" woes.
Date Fri, 03 Aug 2012 12:55:56 GMT
On 08/03/2012 01:35 PM, Fraser Adams wrote:
>      subscription = subscriptions.subscribe(*this, queue);
>
> subscription.setFlowControl(FlowControl::messageWindow(100)); // Why
> doesn't this work :-( ???
>      subscription.setAutoAck(10);

When you say it didn't work, what exactly do you mean? That it behaved 
like the messaqeCredit() call? or that it didn't restrict the window?

Try setting the option on subscribe, rather than after it. E.g.

   subscription = subscriptions.subscribe(*this, queue, 
SubscriptionSettings(FlowControl::messageCredit(100)));

(or else try a Session::messageStop() passing in the subscription name 
before changing the flow control settings).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message