On Wed Apr 01 10:50:32 2015, ABRAXXA wrote:
Show quoted text> Am Di 11. Feb 2014, 07:58:15, DLAMBLEY schrieb:
> > If you're reading from an anonymous queue with
> > Message::Passing::Input::AMQP, and the connection gets interrupted
> > (for example by your broker restarting), it fails to reconnect.
> >
> > You can reproduce the error with this command line and restarting
> > RabbitMQ,
> >
> > message-pass --output STDOUT --decoder JSON --encoder Null --input
> > AMQP --input_options
> > '{"exchange_name":"firehose","hostname":"127.0.0.1","username":"foo","password":"bar","queue_durable":0}'
>
>
> Dying because of a server restart is fixed by AnyEvent::RabbitMQ 1.15
> which is the new required minimum version as of now, see RT#87705).
>
> I've tried your example and what happens instead is this instead:
> Failed to get queue at
> /home/ahartmai/perl5/perlbrew/perls/20/lib/site_perl/5.20.2/Message/Passing/AMQP/Role/DeclaresQueue.pm
> line 50.
>
> Patches welcome!
testing with RabbitMQ shows this is expected behavior - server-generated
queue names are restricted access by default.
proposed PR
https://github.com/suretec/Message-Passing-AMQP/pull/4
testable via:
message-pass --output STDOUT --decoder JSON --encoder Null --input AMQP --input_options '{"exchange_name":"firehose","hostname":"127.0.0.1","username":"guest","password":"guest","queue_forget":1}'