Hi, we're using EasyNetQ .NET API which utilises RabbitMQ.
EasyNetQ client version: 0.28.3.229
RabbitMQ client version: 3.2.4.0
RabbitMQ version: 3.3.4
Our
ASP.NET application pool crashes at seemingly random intervals. We're not sure where in our application code the problem originates, but we see the following in our windows event log.
It seems the API is starting a separate thread and this thread throws an exception which is unhandled by our application.
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/11/ROOT
Process ID: 22040
Exception: System.Net.Sockets.SocketException
Message: An operation was attempted on something that is not a socket
StackTrace:
at System.Net.Sockets.Socket.setLingerOption(LingerOption lref)
at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Object optionValue)
at RabbitMQ.Client.Impl.SocketFrameHandler_0_9.Close() at RabbitMQ.Client.Impl.ConnectionBase.MainLoop()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Any advice would be greatly appreciated.