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

Alan Antonuk alan.antonuk at gmail.com
Tue Aug 20 18:49:13 BST 2013


Here's an example double-ack'ing a message:
https://github.com/alanxz/rabbitmq-c/blob/e7626673f7834aa59858347196c5f549759ccec3/examples/amqp_consumer.c

When you basic.ack a message twice, it will cause a channel-exception (a
channel.close method), and the channel will be closed.


On Mon, Aug 19, 2013 at 7:00 PM, 3k4b251 <314992959 at qq.com> wrote:

> I  did  a  test. try to  use amqp_basic_ack twice  after i got  the
>  message
> delivery_tag .    it's seems  like that  channel  still  alive,  consumer
> lose.  and  I  can still  receive  messages  from the same queue  without
> any consumer.   And  the durable  messages  can not  remove from queue by
> the amqp_basic_ack().  And  amqp_consume_message()  always  return
> AMQP_RESPONSE_NORMAL.
>
>
>
> --
> View this message in context:
> http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-use-amqp-basic-ack-qwTag-twice-lead-consumer-lose-tp28911p28947.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130820/7fcb7683/attachment.htm>


More information about the rabbitmq-discuss mailing list