I'm very sorry, It is typo - It is not connection , Its connected.<div>I apologize , please consider your former comment - "2 client instances running on [the] same server, *connected* to differed RabbitMQ brokers"</div>
<div><br></div><div>I'm very sorry for confusing.</div><div>Thank you very much for your reply. This is helping us a lot.</div><div><br></div><div>One more clarification:</div><div><br></div><div>We have connection pool at client side, and If a graceful shutdown is done for server (RabbitMQ) or server(RabbitMQ) is stopped abruptly - </div>
<div>In both scenarios can we ensure that heartbeat with close all connections. </div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Fri, Dec 21, 2012 at 4:23 PM, Tim Watson <span dir="ltr"><<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 21 Dec 2012, at 10:43, PSL 88506 wrote:<br>
<br>
> 2 client instances running on same server connection to different RabbitMQ brokers.<br>
><br>
<br>
</div>That's not possible. You've either not explained clearly, or you've fundamentally misunderstood. "2 client instances running on [the] same server, *connected* to differed RabbitMQ brokers" would be fine, but 2 clients cannot share one connection to two different brokers. So should I assume you mean the former?<br>
<div class="im"><br>
> Dangling Connection means idle connection not used for very long time.<br>
> Say suppose, client is stopped abruptly and server is not informed, such connection should not exist. Is there any way to handle such connection i.e remove them.<br>
<br>
</div>If a client stops abruptly, then the connection will drop. It's certainly true that TCP/IP can take quite a long time to notice this and inform the broker! That is *exactly* what heartbeats are there for, so that after some shorter time interval, the broker will notice that there have been no heartbeats and therefore tear down the socket and release any server allocated resources. So yes, use heartbeats to ensure that connection state gets cleaned up in a timely fashion.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>