[rabbitmq-discuss] Consumer connection closes abruptly after one message

Michael Klishin michael.s.klishin at gmail.com
Wed Nov 16 15:39:08 GMT 2011

2011/11/16 p2w <tpletch001 at gmail.com>

> I have a rails 3.1 app (using thin server which is Event Machine
> based) using the AMQP gem to connect to two server cluster on EC2. the
> broker is running on ubuntu 11.10 and is version 2.6.1 with erlang
> version 5.8.3.

What application server are you using? If it is something that forks
(Unicorn or Passenger), you need to connect
after that happens. Otherwise only one thread will be inherited (but not
EventMachine's one). This is how fork(2) works, unfortunately.

One more thing you need to do is to set up connection exception handler as
described here:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111116/3a3cda52/attachment.htm>

More information about the rabbitmq-discuss mailing list