SuperSocket icon indicating copy to clipboard operation
SuperSocket copied to clipboard

Error when client disconnects from a secure wss (Tls)

Open bQvle opened this issue 8 years ago • 2 comments

System.ObjectDisposedException: 'Cannot access a disposed object. Object name: 'System.Net.Sockets.Socket'.'

System.dll!System.Net.Sockets.Socket.BeginReceive(byte[] buffer, int offset, int size, System.Net.Sockets.SocketFlags socketFlags, out System.Net.Sockets.SocketError errorCode, System.AsyncCallback callback, object state) Unknown No symbols loaded. System.dll!System.Net.Sockets.Socket.BeginReceive(byte[] buffer, int offset, int size, System.Net.Sockets.SocketFlags socketFlags, System.AsyncCallback callback, object state) Unknown No symbols loaded. System.dll!System.Net.Sockets.NetworkStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown No symbols loaded. System.dll!System.Net.FixedSizeReader.StartReading() Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.StartFrameHeader(byte[] buffer, int offset, int count, System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.StartReading(byte[] buffer, int offset, int count, System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.ProcessRead(byte[] buffer, int offset, int count, System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) Unknown No symbols loaded. System.dll!System.Net.Security.SslStream.BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) Unknown No symbols loaded. SuperSocket.SocketEngine.dll!SuperSocket.SocketEngine.AsyncStreamSocketSession.OnStreamEndRead(System.IAsyncResult result) Unknown No symbols loaded. System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.LazyAsyncResult.ProtectedInvokeCallback(object result, System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.ProcessFrameBody(int readBytes, byte[] buffer, int offset, int count, System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.ReadFrameCallback(System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.AsyncProtocolRequest.CompleteRequest(int result) Unknown No symbols loaded. System.dll!System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(int bytes) Unknown No symbols loaded. System.dll!System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult transportResult) Unknown No symbols loaded. System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.ContextAwareResult.CompleteCallback(object state) Unknown No symbols loaded. mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown No symbols loaded. mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown No symbols loaded. mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown No symbols loaded. System.dll!System.Net.ContextAwareResult.Complete(System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.LazyAsyncResult.ProtectedInvokeCallback(object result, System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(uint errorCode, uint numBytes, System.Threading.NativeOverlapped* nativeOverlapped) Unknown No symbols loaded. mscorlib.dll!System.Threading._IOCompletionCallback.PerformIOCompletionCallback(uint errorCode, uint numBytes, System.Threading.NativeOverlapped* pOVERLAP) Unknown No symbols loaded.


System.IO.IOException: 'Unable to read data from the transport connection: Cannot access a disposed object. Object name: 'System.Net.Sockets.Socket'..'

System.dll!System.Net.Sockets.NetworkStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown No symbols loaded. System.dll!System.Net.FixedSizeReader.StartReading() Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.StartFrameHeader(byte[] buffer, int offset, int count, System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.StartReading(byte[] buffer, int offset, int count, System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.ProcessRead(byte[] buffer, int offset, int count, System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) Unknown No symbols loaded. System.dll!System.Net.Security.SslStream.BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) Unknown No symbols loaded. SuperSocket.SocketEngine.dll!SuperSocket.SocketEngine.AsyncStreamSocketSession.OnStreamEndRead(System.IAsyncResult result) Unknown No symbols loaded. System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.LazyAsyncResult.ProtectedInvokeCallback(object result, System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.ProcessFrameBody(int readBytes, byte[] buffer, int offset, int count, System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.Security._SslStream.ReadFrameCallback(System.Net.AsyncProtocolRequest asyncRequest) Unknown No symbols loaded. System.dll!System.Net.AsyncProtocolRequest.CompleteRequest(int result) Unknown No symbols loaded. System.dll!System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(int bytes) Unknown No symbols loaded. System.dll!System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult transportResult) Unknown No symbols loaded. System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.ContextAwareResult.CompleteCallback(object state) Unknown No symbols loaded. mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown No symbols loaded. mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown No symbols loaded. mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown No symbols loaded. System.dll!System.Net.ContextAwareResult.Complete(System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.LazyAsyncResult.ProtectedInvokeCallback(object result, System.IntPtr userToken) Unknown No symbols loaded. System.dll!System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(uint errorCode, uint numBytes, System.Threading.NativeOverlapped* nativeOverlapped) Unknown No symbols loaded. mscorlib.dll!System.Threading._IOCompletionCallback.PerformIOCompletionCallback(uint errorCode, uint numBytes, System.Threading.NativeOverlapped* pOVERLAP) Unknown No symbols loaded.

bQvle avatar Nov 02 '17 16:11 bQvle

Friend, have you solved this problem?

taewoo0282 avatar Mar 30 '23 15:03 taewoo0282

Could you describe your scenario? Which version of SuperSocket do you use?

kerryjiang avatar Mar 30 '23 16:03 kerryjiang