<div dir="ltr">Here's an example double-ack'ing a message:<div><a href="https://github.com/alanxz/rabbitmq-c/blob/e7626673f7834aa59858347196c5f549759ccec3/examples/amqp_consumer.c">https://github.com/alanxz/rabbitmq-c/blob/e7626673f7834aa59858347196c5f549759ccec3/examples/amqp_consumer.c</a><br>
</div><div><br></div><div>When you basic.ack a message twice, it will cause a channel-exception (a channel.close method), and the channel will be closed.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Aug 19, 2013 at 7:00 PM, 3k4b251 <span dir="ltr"><<a href="mailto:314992959@qq.com" target="_blank">314992959@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I did a test. try to use amqp_basic_ack twice after i got the message<br>
delivery_tag . it's seems like that channel still alive, consumer<br>
lose. and I can still receive messages from the same queue without<br>
any consumer. And the durable messages can not remove from queue by<br>
the amqp_basic_ack(). And amqp_consume_message() always return<br>
AMQP_RESPONSE_NORMAL.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-use-amqp-basic-ack-qwTag-twice-lead-consumer-lose-tp28911p28947.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-use-amqp-basic-ack-qwTag-twice-lead-consumer-lose-tp28911p28947.html</a><br>
<div class="im HOEnZb">Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>