<br><br><div class="gmail_quote">2011/7/21 Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@rabbitmq.com">matthias@rabbitmq.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br></div>
That's curious. Both should cause rabbit to complain with the "expected method frame, got non method frame instead" error. Are you sure you are seeing different behaviour here? If so, please send through the pcap files showing the entire tcp session.<br>
</blockquote><div><br>Yes, I am very much sure. I have spent hours investigating this thing and ran it probably hundreds of times. Will do.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Content body frames should never be zero length. If the content length is zero then no content body frame should be sent at all, just a header.</blockquote></div><br>Ah, yes, I read this line in the spec but then the fact that another Ruby client that *also sends an empty content body frame* works fine confused me.<br>
<br>So for a blank string payload, the sequence is always<br><br>[method frame] [content header frame]<br><br>not<br><br>[method frame] [content header frame] [content body frame with size = 0]<br clear="all"><br>correct?<br>
-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br><br>