amqpcat
amqpcat copied to clipboard
--consumer ignores the --once parameter
Using rabbitmq 2.1.1 (both clustered and standalone nodes), the --once parameter is ignored and the entire queue is cleared out.
However, only the first item in the queue is displayed to STDOUT.
here's the repo:
$ echo 'first' | amqpcat -p amqp://foo:foo@localhost/
$ echo 'second' | amqpcat -p amqp://foo:foo@localhost/
$ amqpcat -c -o amqp://foo:foo@localhost/
first
$ amqpcat -c -o amqp://foo:foo@localhost/
(just hangs waiting for the next message - can confirm queue is empty via management console, or by submitting another message)
bunny 0.8.0 doesn't appear to solve this.