amqpcat icon indicating copy to clipboard operation
amqpcat copied to clipboard

--consumer ignores the --once parameter

Open stensonb opened this issue 11 years ago • 2 comments

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)

stensonb avatar Jun 03 '13 17:06 stensonb

bunny 0.8.0 doesn't appear to solve this.

stensonb avatar Jun 03 '13 17:06 stensonb