Skip to content

[Bug]: CloseChannelAsync: System.TimeoutException: Receive timed out after 00:00:00 #1542

@chekm8

Description

@chekm8

Duplicate ?

  • I have searched issues/discussions and did not find other issues/discussions reporting this bug.

Product version

1.6.0

Describe expected behavior

Note, this may be similar to #1534 , but since the my issue is a completely different stack trace I am requesting assistance.

We are randomly receiving the System.TimeoutException: Receive timed out after 00:00:00 exceptions and are not able to find a way to reproduce the issue. Most of our timeout settings (SendTimout, ReceiveTimeout, OpenTimeout) are explicitly set to a default value so I am unsure as to why we are seeing a "00:00:00" value when this occurs. Any guidance you can provide as to how to determine why this timeout is set this value would be helpful.

Describe actual behavior

We are randomly receiving the System.TimeoutException: Receive timed out after 00:00:00 exceptions called from CloseChannelAsync(). Full stack trace is below

Which binding

NetTcp

security

None

Which .NET version

.NET 8

Which os platform

Windows

Code snippet used to reproduce the issue

Our global handler is catching the exception of an async so we are not getting an explicit stack trace that include our code.

Stacktrace if any

System.TimeoutException: Receive timed out after 00:00:00. The time allotted to this operation may have been a portion of a longer timeout.
 ---> System.TimeoutException: Cannot claim lock within the allotted timeout of 00:00:00. The time allotted to this operation may have been a portion of a longer timeout.
   --- End of inner exception stack trace ---
   at CoreWCF.Channels.SynchronizedMessageSource.ReceiveAsync(CancellationToken token)
   at CoreWCF.Channels.TransportDuplexSessionChannel.EnsureInputClosedAsync(CancellationToken token)
   at CoreWCF.Channels.TransportDuplexSessionChannel.OnCloseAsync(CancellationToken token)
   at CoreWCF.Channels.ServerFramingDuplexSessionChannel.OnCloseAsync(CancellationToken token)
   at CoreWCF.Channels.CommunicationObject.CloseAsync(CancellationToken token)
   at CoreWCF.Channels.ServiceChannel.OnCloseAsync(CancellationToken token)
   at CoreWCF.Channels.CommunicationObject.CloseAsync(CancellationToken token)
   at CoreWCF.Dispatcher.MessageRpc.CloseChannelAsync()

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