<br><br><div class="gmail_quote">2011/11/16 p2w <span dir="ltr">&lt;<a href="mailto:tpletch001@gmail.com">tpletch001@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div id=":1nt">I&#39;m sure I&#39;m doing something wrong in the initializer but can&#39;t figure<br>
out what as its really pretty vanilla. Any help greatly appreciated...</div></blockquote></div><br>I apologize for not noticing that you are using Thin. One thing that may<div>cause abrupt TCP connection termination is uncaught exception on the EventMachine</div>

<div>thread (in this case, your applications&#39; main thread). In some cases it may be swallowed by</div><div>various &quot;helpful&quot; libraries. Can you try removing more and more</div><div>code from your consumer handlers to see at what point connection becomes stable?<div>

<br></div><div>Also, with at least a couple of most recent point amqp gem releases you can simplify your initializer</div><div>a little bit by renaming config file to amqp.yml and using AMQP::Integration::Rails:</div><div>

<br></div><div><a href="https://gist.github.com/3d995824090df94558b0">https://gist.github.com/3d995824090df94558b0</a></div><div><br></div><div>Sorry that it is undocumented yet.</div>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br>

<a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br><br>
</div>