[rabbitmq-discuss] rabbitmq-c use amqp_basic_ack(..., qwTag, ..) twice lead consumer lose

Simon MacMullen simon at rabbitmq.com
Mon Aug 19 10:08:13 BST 2013


On 19/08/2013 10:01, 3k4b251 wrote:
> I  try  to  use   amqp_basic_ack()  twice  with  same  parameter

You should not acknowledge the same delivery tag twice.

>, it's  seem OK. rabbitmq server reply NROMAL.

I don't know librabbitmq that well, but basic.ack is an asynchronous 
method, so the server can't reply at all. The NORMAL "reply" is 
presumably being given to you unconditionally by the client library.

> But  I  check  list_consumers. find
> that  consumer  lose.  what's  the problem ?

The consumer (and the channel) will have been closed. The server will 
have reported an error - I'm not sure how you get that in the C API.

Cheers, Simon



More information about the rabbitmq-discuss mailing list