[rabbitmq-discuss] Consumer connection closes abruptly after one message
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss