Skip to content

Exception thrown in SocketConnectivitySubchannelTransport.Disconnect() #1560

@olivierboucher

Description

@olivierboucher

What version of gRPC and what language are you using?

2.42.0-pre1

What operating system (Linux, Windows,...) and version?

Docker image: mcr.microsoft.com/dotnet/aspnet:5.0

What runtime / compiler are you using (e.g. .NET Core SDK version dotnet --info)

Host (useful for support):
  Version: 5.0.13
  Commit:  b3afe99225

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

What did you do?

Nothing. Seems to happens sporadically as the server runs

What did you expect to see?

What did you see instead?

Seems like this is an internal error unrelated to any application specific code.

Unhandled exception. System.ObjectDisposedException: Cannot access a disposed object.
   at System.Threading.TimerQueueTimer.Change(UInt32 dueTime, UInt32 period)
   at System.Threading.Timer.Change(TimeSpan dueTime, TimeSpan period)
   at Grpc.Net.Client.Balancer.Internal.SocketConnectivitySubchannelTransport.Disconnect()
   at Grpc.Net.Client.Balancer.Internal.SocketConnectivitySubchannelTransport.OnStreamDisposed(Stream streamWrapper)
   at Grpc.Net.Client.Balancer.Internal.StreamWrapper.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.Net.Http.Http2Connection.CheckForShutdown()
   at System.Net.Http.Http2Connection.Dispose()
   at System.Net.Http.HttpConnectionPool.CleanCacheAndDisposeIfUnused()
   at System.Net.Http.HttpConnectionPoolManager.RemoveStalePools()
   at System.Net.Http.HttpConnectionPoolManager.<>c.<.ctor>b__12_0(Object s)
   at System.Threading.TimerQueueTimer.CallCallback(Boolean isThreadPool)
   at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
   at System.Threading.TimerQueue.FireNextTimers()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions