<div>Hi Michael,</div><div><br></div><div>First of all: this is a fantastic addition. Thank you so much.</div><div><br></div><div>Just one thing though: is network failure recovery supposed to work with q.pop as well? The reason I am asking is I can't get it to work. I modified slightly one of your examples:</div><div><br></div><div><div>require 'bunny'</div><div><br></div><div>broker = Bunny.new</div><div>broker.start</div><div>channel = broker.create_channel</div><div>exchange = channel.default_exchange</div><div><br></div><div>loop do</div><div> sleep 2</div><div> puts "Tick"</div><div> </div><div> q = channel.queue("foo")</div><div> delivery_info, properties, payload = q.pop</div><div> </div><div>end</div></div><div><br></div><div><br></div>If you run the script and stop the RabbitMQ server while the script is executing, the script hangs on q.pop.<div>If you then restart the server, the script will pass the q.pop once, then hang again and nothing happens anymore.</div><div><br></div><div>Is this expected?</div><div><br></div><div>Thanks a lot</div><div>PJ</div><div><br></div><div><br></div><div>On Monday, January 14, 2013 5:48:15 PM UTC, Michael Klishin wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">TL;DR</div><div style="font-family:arial,sans-serif;font-size:13px">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------------------</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><span style="background-color:rgb(255,255,204);font-family:arial,sans-serif;font-size:13px">Bunny</span><span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="background-color:rgb(255,255,204);font-family:arial,sans-serif;font-size:13px">0.9</span><span style="font-family:arial,sans-serif;font-size:13px">.0.pre6 is released to </span><a href="http://rubygems.org/" style="font-family:arial,sans-serif;font-size:13px" target="_blank">rubygems.org</a><span style="font-family:arial,sans-serif;font-size:13px"> [1].</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">This release includes one major feature and a few bug fixes. It is 100% backwards</div><div style="font-family:arial,sans-serif;font-size:13px">compatible.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The major feature is automatic network failure recovery. This includes recovery of</div><div style="font-family:arial,sans-serif;font-size:13px">
exchanges, queues, bindings and consumers that were declared/added on the</div><div style="font-family:arial,sans-serif;font-size:13px">recovered Bunny connection.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">In addition, documentation guides on error handling and recovery is now up online:</div><div style="font-family:arial,sans-serif;font-size:13px"><a href="http://rubybunny.info/articles/exchanges.html" target="_blank">http://rubybunny.info/<wbr>articles/error_handling.html</a><br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Change log</div><div style="font-family:arial,sans-serif;font-size:13px">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------------------</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Change log is available on GitHub:</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><a href="https://github.com/ruby-amqp/bunny/blob/master/ChangeLog.md#changes-between-bunny-090pre4-and-090pre5" target="_blank">https://github.com/ruby-amqp/<span style="background-color:rgb(255,255,204);color:rgb(34,34,34)">b<wbr>unny</span>/blob/master/ChangeLog.md#<wbr>changes-between-<span style="background-color:rgb(255,255,204);color:rgb(34,34,34)">bunny</span>-090pre5-<wbr>and-090pre</a>6<br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Plans for 0.9.0 Final</div>
<div style="font-family:arial,sans-serif;font-size:13px">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------------------<br></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">There is still a few things we need to do before Bunny 0.9 can be declared complete:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px"> * Make network failure recovery configurable</div><div style="font-family:arial,sans-serif;font-size:13px"> * Bring back TLS support</div><div style="font-family:arial,sans-serif;font-size:13px">
* Add logging</div><div style="font-family:arial,sans-serif;font-size:13px"> * API reference documentation</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Changes are, the next release will be RC1.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div><br></div><div>1. <a href="https://rubygems.org/gems/bunny/versions/0.9.0.pre5" target="_blank">https://rubygems.org/gems/<span style="background-color:rgb(255,255,204);color:rgb(34,34,34)">b<wbr>unny</span>/versions/<span style="background-color:rgb(255,255,204);color:rgb(34,34,34)">0.9</span>.0.pre</a>6</div>
</div>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/<wbr>michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/<wbr>michaelklishin</a><br>
</div>
</blockquote></div>