alanxz / rabbitmq-c

RabbitMQ C client
MIT License
1.77k stars 672 forks source link

amqp_basic_nack requeue doesn't set redelivered flag #762

Open Cazra opened 1 year ago

Cazra commented 1 year ago

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 commented 1 year ago

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

alanxz commented 1 year ago

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.