Skip Menu |

This queue is for tickets about the AnyEvent-RabbitMQ CPAN distribution.

Report information
The Basics
Id: 83899
Status: open
Priority: 0/
Queue: AnyEvent-RabbitMQ

People
Owner: Nobody in particular
Requestors: DLAMBLEY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.11
Fixed in: (no value)



Subject: Out of order frames can make AnyEvent::RabbitMQ fail
I have code which attempts creates a handful of exchanges and queues, and then attempts to consume a pre-existing queue. It intermittently fails in "_push_read_and_valid" with, Method is not Basic::ConsumeOk Method was Net::AMQP::Protocol::Queue::DeclareOk' I assume it is intermittent as either RabbitMQ or AnyEvent::RabbitMQ's order of processing is not determinant.
On Tue Mar 12 08:08:45 2013, DLAMBLEY wrote: Show quoted text
> I assume it is intermittent as either RabbitMQ or AnyEvent::RabbitMQ's > order of processing is not determinant.
Indeed. AMQP allows you to be asynchronous with things like this, and RabbitMQ uses this. However AE::RMQ expects things to happen in a linear order, which is _totally wrong_ :-( We need to fix this at some point, suggestions for sane ways to do so are welcome.