Join GitHub today
Undefined method "method_class" for AMQ::Protocol::BodyFrame #218
unfortunately, there's a bug
Here's a line, which raises an exception:
first_frame.final? || (first_frame.method_class.has_content? && content_complete?(frames[1..-1]))
in case, when first_frame.final? evaluates to false.
@alexnorthsoul in what context does this happen? A BodyFrame is not supposed to be the first frame in the buffer (from my understanding). I was fighting this issue myself today.
For me, an exception was thrown on the callback block of the first message received, causing the channel's buffer to not be cleared by this line:
clear_frames_on(frame.channel) if @frames[frame.channel]
I was about to submit an issue myself but just saw yours.
My thought is that
Anywhere you call user specified code without a guaranteed cleanup there can be bugs like the one outlined above.
@michaelklishin any chance the "graceful cleanup" in
Feel free to submit a PR, thank you.