qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Conway <acon...@redhat.com>
Subject Re: 10000 msgs limit per session
Date Mon, 30 Nov 2009 14:01:32 GMT
On 11/30/2009 06:14 AM, Alexei Sosin wrote:
> I noted that there is a limitation in .Net client, to receive 10 000 messages only per
 session.  Client just stops receiving them after this number has passed.
> Digging into the 0-10 client code, there is a line in ClientSession.cs:
> messageFlow(queue, MessageCreditUnit.MESSAGE, 10000);
> So the worj-around for me is that client should count messages and re-create session
once it hits the limit.
> But, why this limitation is there? I see no such limits mentioned in AMQP spec.
Don't know anything about .NET but that's an AMQP flow control command 
containing the limit. It means the client should not receive more than 10000 
*unacknowledged* messages. If your client acknowledges messages as it receives 
them then it should continue to receive messages. You can set flow control to 
unlimited but your client needs to acknowledge messages in any case for them to 
be removed from the queue. You can set your subscription such that no 
acknowledgment is required but I don't know the .NET API to do so.

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org

View raw message