Description
https://github.com/couchbase/EnyimMemcached/blob/master/Enyim.Caching/MemcachedClient.cs#L890
The line in this code can throw ObjectDisposedException that is not handled in the Memcache Client Code. Since this code is executed on a thread NOT owned by an IIS Context Thread, this un-handled exception terminates the worker process as can be seen in our Application Log.
<Data>An unhandled exception occurred and the process was terminated. Application ID: /LM/W3SVC/1/ROOT Process ID: 20140 Exception: System.ObjectDisposedException Message: Safe handle has been closed StackTrace: at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success) at Microsoft.Win32.Win32Native.SetEvent(SafeWaitHandle handle) at System.Threading.EventWaitHandle.Set() at Enyim.Caching.MemcachedClient.<>c_DisplayClass29`1.<PerformMultiGet>b_1d(IAsyncResult iar) at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()</Data>