<div dir="ltr">You need to send a basic.recover method (amqp_basic_recover()).<div><br></div><div><a href="http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.recover">http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.recover</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 24, 2013 at 6:57 AM, 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 send a durable message to queue: 123456 .<br>
Then I use amqp_basic_consume(...,123456,tag,..).<br>
Then I receive the message and delivery_tag.<br>
the message will be still alive in the queue if I not use<br>
amqp_basic_ack(...,delivery_tag).<br>
Then I use amqp_basic_cancel(tag) to remove queue listener without use<br>
amqp_basic_ack() before;<br>
Then I use amqp_basic_consume(123456,tag) twice. It's seems like that<br>
the server didn't push the message to me .<br>
So I restart the connection to server. Then use<br>
amqp_basic_consume(123456,tag). server push message to me .<br>
So I just want to know , if I lose the message ack, how can I get<br>
the message again by the same consumer ? Only to restart connection ?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-can-t-recieve-message-tp29061.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-can-t-recieve-message-tp29061.html</a><br>
Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
_______________________________________________<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>
</blockquote></div><br></div>