[rabbitmq-discuss] AMQP Field Tables & Short Integers

Tony Garnock-Jones tonygarnockjones+rabbitmq at gmail.com
Fri Jan 17 03:11:34 GMT 2014


On 16 January 2014 19:57, Gavin M. Roy <gavinmroy at gmail.com> wrote:

> Seems my mistake was using the AMQP-0-9-1 standard for field types with
> regard to short integers.
>

Heh :-) Yep. This is one of the few areas that AMQP 0-9-1 got wrong. It
*should* have standardised actual implementation practice at the time.


> In looking at the code for the encoder and decoder in Rabbit, I see that
> *s* is used for short ints.
>

Yep. This matches what all the brokers were doing at the time.


> Will RabbitMQ be staying with the misuse of *s* for shorts for the
> foreseeable future?
>

I can't speak for the team, of course, but I'd recommend doing so. All the
client libraries I'm aware of ignore 0-9-1 in this area.

If an AMQP 0-9-2 is ever released, IMO it should reflect what the various
libraries actually implement.


> Is there any intention or desire to add the specified *U* into the
> decoder and never support *s* for anything but short-int instead of
> short-string?
>

This sounds like a good idea.

Regards,
  Tony
-- 
Tony Garnock-Jones
tonygarnockjones at gmail.com
http://homepages.kcbbs.gen.nz/tonyg/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140116/dadd6c3b/attachment.html>


More information about the rabbitmq-discuss mailing list