rabbitmq-c icon indicating copy to clipboard operation
rabbitmq-c copied to clipboard

amqp_basic_nack requeue doesn't set redelivered flag

Open Cazra opened this issue 2 years ago • 2 comments

I'm having an issue with using amqp_basic_nack to requeue messages. When I set the requeue argument to 1, it does redeliver the message to the queue, but when I eventually consume it again, the envelope's redelivered flag is always 0. I'd expect this to be 1 if the message was previously NACKed and requeued. Am I missing something?

Cazra avatar Mar 03 '23 17:03 Cazra

I also tried rejecting the message with requeue set to 1, but I'm experiencing the same issue with that too.

Cazra avatar Mar 03 '23 19:03 Cazra

I need some additional information here:

  1. What version of rabbitmq-c are you using?
  2. What version of the RabbitMQ broker are you using?
  3. What client are you using to consume the messages (if different from rabbitmq-c)?

If you have a pared down example that demonstrates the issue, that would be helpful.

alanxz avatar Apr 30 '23 15:04 alanxz