ruby-amqp/amq-protocol — Issue #19: Serialize integer values in attribute tables (like queue.declare :arguments or message headers) as longlong
Author: michaelklishin
Created: 2011-10-12 19:07:55+00:00
State: open

We need to serialize integer values in attribute tables (like queue.declare :arguments or message headers) as longlong because this is what RabbitMQ Java client does. [My initial attempt](https://github.com/ruby-amqp/amq-protocol/commit/61da5c9a6f9884c234492034d9772715e3034537) causes 2 failures in the amqp gem test suite so I reverted it for now.

In practice 32-bit unsigned integers allow for really large values to be specified but RabbitMQ will treat 3600000 int being a different value from 3600000 long (used by the Java client) so this is a real interoperability issue and not just annoyance.

[See this mailing list thread](http://groups.google.com/group/ruby-amqp/browse_thread/thread/c1e142108b396fb1?hl=en) for background.