<div dir="ltr">On 16 January 2014 19:57, Gavin M. Roy <span dir="ltr"><<a href="mailto:gavinmroy@gmail.com" target="_blank">gavinmroy@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Seems my mistake was using the AMQP-0-9-1 standard for field types with regard to short integers.</div>
</blockquote><div><br></div><div>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.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">In looking at the code for the encoder and decoder in Rabbit, I see that <i>s</i> is used for short ints.</div></blockquote><div><br></div><div>Yep. This matches what all the brokers were doing at the time.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Will RabbitMQ be staying with the misuse of <i>s</i> for shorts for the foreseeable future?</div>
</blockquote><div><br></div><div>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.<br><br>If an AMQP 0-9-2 is ever released, IMO it should reflect what the various libraries actually implement.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Is there any intention or desire to add the specified <i>U</i> into the decoder and never support <i>s</i> for anything but short-int instead of short-string?</div>
</blockquote><div><br></div><div>This sounds like a good idea.<br><br></div><div>Regards,<br></div><div> Tony<br></div></div>-- <br>Tony Garnock-Jones<br><a href="mailto:tonygarnockjones@gmail.com" target="_blank">tonygarnockjones@gmail.com</a><br>
<a href="http://homepages.kcbbs.gen.nz/tonyg/" target="_blank">http://homepages.kcbbs.gen.nz/tonyg/</a>
</div></div>