Azure / Azure/DotNetty

System.ObjectDisposedException: Cannot access a disposed object. Object name: 'SslStream'.

Open
#465 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.3k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

A tcp server with tls enabled, occurred not very often while holding 1k concurrent connections.
I think it's likely we are trying to send data to client but the connection is already disconnected.
Is it a bug or I can just ignore this exception?

at System.Net.Security.SslState.ThrowIfExceptional()
at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolean shutdownCheck)
at System.Net.Security.SslState.get_SecureStream()
at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at DotNetty.Buffers.PooledHeapByteBuffer.GetBytes(Int32 index, Stream destination, Int32 length)
at DotNetty.Buffers.AbstractByteBuffer.ReadBytes(Stream destination, Int32 length)
at DotNetty.Handlers.Tls.TlsHandler.Wrap(IChannelHandlerContext context)
at DotNetty.Handlers.Tls.TlsHandler.Flush(IChannelHandlerContext context)
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeFlush0()

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.