[rabbitmq-discuss] rabbitmq-c can't recieve message

Alan Antonuk alan.antonuk at gmail.com
Sat Aug 24 18:20:51 BST 2013


You need to send a basic.recover method (amqp_basic_recover()).

http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.recover


On Sat, Aug 24, 2013 at 6:57 AM, 3k4b251 <314992959 at qq.com> wrote:

>   I  send  a  durable  message  to   queue:  123456  .
> Then  I   use   amqp_basic_consume(...,123456,tag,..).
> Then   I  receive  the  message  and   delivery_tag.
> the message  will be still  alive  in  the  queue  if  I  not   use
> amqp_basic_ack(...,delivery_tag).
> Then I use  amqp_basic_cancel(tag)  to remove queue listener without  use
> amqp_basic_ack() before;
> Then I use  amqp_basic_consume(123456,tag)  twice. It's  seems  like that
> the server  didn't  push the message  to me .
> So  I  restart the connection to server. Then  use
> amqp_basic_consume(123456,tag).  server push message  to me .
>   So  I just want to know ,  if  I  lose the  message  ack, how  can  I get
> the message  again by the same consumer ? Only to  restart connection ?
>
>
>
> --
> View this message in context:
> http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-can-t-recieve-message-tp29061.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/20130824/d6c4e5ca/attachment.htm>


More information about the rabbitmq-discuss mailing list