<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear ___,<div><br></div><div><div>Your example code appears to register the consumer callback repeatedly</div><div>in a loop, draining events after doing this. This cannot be good use of</div><div>the interface (but I could be wrong).</div><div><br></div><div>You may like to look at <a href="http://pypi.python.org/pypi/librabbitmq/">http://pypi.python.org/pypi/librabbitmq/</a> for</div><div>information about how to use the library correctly. There is an example</div><div>on the first page that demonstrates the consumer idiom.</div><div><br></div><div>The five minutes pause is likely enough time either for the repeated</div><div>stuff to clog up the client somehow, or for some network mechanism to</div><div>close the connection since nothing is happening on it. RabbitMQ will not</div><div>do this, but I am told there are network firewalls and stuff that will</div><div>unceremoniously chop a connection if it is silent for a while. It is not</div><div>clear that the client would ever notice this.</div><div><br></div><div>If these steps do not help I recommend looking in the RabbitMQ logs to</div><div>see why the connection is lost. Come to think of it, I would recommend</div><div>looking there anyway. You do not say if your tests are run locally or if</div><div>the server is on a different machine from the publisher/consumers?</div></div><div><br></div><div>Good luck,&nbsp;</div><div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="font-style: normal; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="font-family: Georgia; font-size: medium; font-weight: normal; font-style: normal; "><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">____ ____&nbsp;</span><span class="Apple-style-span" style="font-size: 11px; ">(<i>a happy bunny</i>)</span></font></div></div><div><font class="Apple-style-span"><div style="font-weight: normal; font-style: normal; font-family: Helvetica; font-size: 12px; "><i><font class="Apple-style-span" face="Georgia" size="2"><span class="Apple-style-span" style="font-size: 10px; ">----------yet more definitions from the SPD----------</span></font></i></div></font></div></div></div><span class="Apple-style-span" style="font-style: normal; font-weight: normal; font-family: Helvetica; font-size: 12px; "><font class="Apple-style-span" face="Georgia" size="2" style="font-style: normal; "><span class="Apple-style-span" style="font-size: 10px; "><b>corrugate</b>&nbsp;(</span></font><font class="Apple-style-span" face="Georgia" size="2"><span class="Apple-style-span" style="font-size: 10px; "><i>n.</i>) T.V. soap scandal.</span></font></span><div style="font-style: normal; font-family: Georgia; font-size: medium; font-weight: normal; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px; "><b>olympic</b></span><span class="Apple-style-span" style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px; ">&nbsp;(</span><span class="Apple-style-span" style="font-family: Georgia; font-weight: normal; font-size: 10px; "><i>n.</i>)</span><span class="Apple-style-span" style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px; ">&nbsp;A camp road-digger.</span></span></div><div style="font-family: Georgia; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="font-family: Georgia; font-style: normal; font-size: 10px; "><b>jamboree</b></span><span class="Apple-style-span" style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px; ">&nbsp;(</span><span class="Apple-style-span" style="font-family: Georgia; font-weight: normal; font-size: 10px; "><i>n.</i></span><span class="Apple-style-span" style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px; ">) A conserve made from French cheese.</span></span></div></div></div></span></div></div>
</div>
<br><div><div>On 26 Jul 2012, at 10:34, APA wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div>High, I wonder if someone can help me</div><div><br></div><div>I'm using python and librabbitmq</div><div><br></div><div>I've a publisher and consumer (files are attached)</div><div><br></div><div>First Test&nbsp;</div><div>The consumer declares and binds a queue to the exchange with AutoDelete=True</div><div>Start the consumer then the publisher.</div><div>Everything works great until I kill the publisher. Then wait five minutes and run the publisher again.</div><div>When it starts, RabbitMQ deletes the queue. The consumer does not get notice that he "loss connection"</div><div><br></div><div>Second Test</div><div>Change the consumer queue to be AutoDelete=False.</div><div>Everything works great until I kill the publisher. Then wait five minutes and run the publisher again.</div><div>The queue is not deleted but the consumer does not get notice that he "loss connection" and no message are received.</div><div><br></div><div>This behavior is normal or I'm making a great mistake, because I'm supposing the consumer should be listening to incoming messages from publisher.</div><div><br></div><div>Thanks in advanced</div><div><br></div><div>Best regards</div></div><div><div><br></div><div><br></div><div><br></div><div><br></div></div><span>&lt;consumer.py&gt;</span><span>&lt;publisher.py&gt;</span>_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br></blockquote></div><br></div></body></html>