Hi,
scenarios is this, assume 5 messages in a queue and this sequence:
- amqp_basic_consume() with a prefetch count = 5
- call amqp_consume_message() once, neither ack nor nack (still 4 messages locally buffered)
- call amqp_basic_cancel()
Now I want the put the channel in a pristine state, so the next consume will not read orphaned messages. amqp_basic_recover() after cancel will help already and put back all the messages. Question is: is there a better way to drain the local buffer than to call amqp_consume_message() in a loop?
cu
Lars