doublefox1981 wrote:
i run the request&response example on dotnet, the client send message all
the time, and the server reply message when recvied . but later i found the c++
broker's memory increase all time. i think that maybe i did't acknowledge message,
i don't know how to ack it. please help me.
In AMQP 0-10 there are two levels of acknowledgement. The first involves
accepting the message and your example code does that through the
> _session.messageAccept(_range);
requests. Additionally there is a session level confirmation of
completion. This completion controls flow control (as well as being used
for managing session state).
If your subscription is using windowing flow mode, then sending the
completions is required.
To send the completion I believe the following line alongside any
messageAccept will work:
_session.sessionCompleted(_range);
Hope this helps.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]