<font face="trebuchet ms,sans-serif">Hi Bryan, I think it's a known bug which has popped up on the list some days ago, not sure it is fixed in the repository though, but a bug report has been filed already. It's indeed related to heartbeat settings.</font><div>
<font face="'trebuchet ms', sans-serif">The thread was titled "</font><span style>Possible bug when disposing connection</span><span style>s in .NET client 2.7.0/1</span><span style="font-family:'trebuchet ms',sans-serif">"</span></div>
<div><br><div class="gmail_quote">On Fri, Jan 6, 2012 at 22:17, Bryan Murphy <span dir="ltr"><<a href="mailto:bmurphy1976@gmail.com" target="_blank">bmurphy1976@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Guys,<div><br></div><div>Every since upgrading to v2.7.1 we've found that the RabbitMQ driver has been killing our applications by throwing unhandled exceptions in background threads. Here are two stack traces that brought down one of our test apps:</div>
<div><br></div><div><div><a href="tel:%5B2012-01-06%2021" value="+12012010621" target="_blank">[2012-01-06 21</a>:13:36,193] [ERROR] Unhandled Exception</div><div>System.Net.Sockets.SocketException: The descriptor is not a socket</div>
<div> at System.Net.Sockets.Socket.SetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, System.Object optionValue) [0x00000] in <filename unknown>:0</div>
<div> at System.Net.Sockets.TcpClient.set_LingerState (System.Net.Sockets.LingerOption value) [0x00000] in <filename unknown>:0</div><div> at RabbitMQ.Client.Impl.SocketFrameHandler_0_9.Close () [0x00000] in <filename unknown>:0</div>
<div> at RabbitMQ.Client.Impl.ConnectionBase.FinishClose () [0x00000] in <filename unknown>:0</div><div> at RabbitMQ.Client.Impl.ConnectionBase.HeartbeatReadLoop () [0x00000] in <filename unknown>:0</div><div>
at System.Threading.Thread.StartUnsafe () [0x00000] in <filename unknown>:0</div></div><div><br></div><div><a href="tel:%5B2012-01-06%2021" value="+12012010621" target="_blank">[2012-01-06 21</a>:13:20,706] [ERROR] Unhandled Exception</div>
<div><div>System.ObjectDisposedException: The object was used after being disposed.</div>
<div> at System.Net.Sockets.Socket.SetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, System.Object optionValue) [0x00000] in <filename unknown>:0</div><div> at System.Net.Sockets.TcpClient.set_LingerState (System.Net.Sockets.LingerOption value) [0x00000] in <filename unknown>:0</div>
<div> at RabbitMQ.Client.Impl.SocketFrameHandler_0_9.Close () [0x00000] in <filename unknown>:0</div><div> at RabbitMQ.Client.Impl.ConnectionBase.FinishClose () [0x00000] in <filename unknown>:0</div><div> at RabbitMQ.Client.Impl.ConnectionBase.HeartbeatReadLoop () [0x00000] in <filename unknown>:0</div>
<div> at System.Threading.Thread.StartUnsafe () [0x00000] in <filename unknown>:0</div></div><div><br></div><div>This happens on both windows and mono 2.10.1 and never seems to originate in any of our code.</div><div>
<br></div><div>Thanks,</div><div>Bryan</div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">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>