tmm1 / amqp

AMQP client implementation in Ruby/EventMachine
http://groups.google.com/group/ruby-amqp
443 stars 5 forks source link

Message count for MQ::Queue isn't reported properly, it's always 0 #31

Closed botanicus closed 13 years ago

botanicus commented 13 years ago

The problem is somewhere in Protocol::Queue::DeclareOk, I'm always getting [:@message_count, 0]. Here's the failing spec: https://github.com/botanicus/amqp/commit/edc29483eac4119c407166b589f00b43234ccb2f#L1R20

botanicus commented 13 years ago

Actually this is an invalid issue, I removed the failing spec in https://github.com/ruby-amqp/amqp/commit/9cdc94d61016f37b6dbc2dfe24116d58b77753fa The message-count isn't documented in the AMQP spec, but when I use publish more messages, for example 300, then the message_count is always bigger than 0, which means it does something (the question is what).