<div dir="ltr">Thanks Michael. �So if I set heartbeat timeout, if the specific conn/channel hasn't been closed for a specified time, then the rabbit server will close that connection/channel, right? �Is there any harm in putting this in the code? �I want to make sure that this is good practice and such.<div>
<br></div><div>-Phil</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 2, 2013 at 2:20 PM, Michael Klishin <span dir="ltr"><<a href="mailto:michael.s.klishin@gmail.com" target="_blank">michael.s.klishin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">2013/12/2 cw storm <span dir="ltr"><<a href="mailto:cwstorm@gmail.com" target="_blank">cwstorm@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

�I'm thinking of adding setConnectionTimeOut to the open connection service so that if that connection/channel did not close properly, the rabbit mq server will close it after the timeout has been reach. �Please let me know if this is best practice or not.</blockquote>


</div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">setConnectionTimeOut configures a value that's passed to Socket#connect. What you want to set is heartbeat timeout</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">(say, to 30-60 seconds). Note that both server and client do not immediately detect when their peer is unreachable</span></div>


<div><span style="font-family:arial,sans-serif;font-size:13px">due to how TCP works (TCP connections will sit there in TIME_WAIT state for some time). Heartbeats</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">enable such situations to be detected earlier.</span></div>
<span class="HOEnZb"><font color="#888888">

-- <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>
</font></span></div></div>
<br>_______________________________________________<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" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>