OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.97k stars 950 forks source link

Deadlock in Tcp stack #2744

Closed cho-regin closed 2 months ago

cho-regin commented 2 months ago

Type of issue

Current Behavior

I have two threads deadlocking each other; one in IdleCleanup in TcpListenerChannel.cs:110 and one in ChannelClosed in TcpTransportListener.cs:179

Expected Behavior

no deadlock

Steps To Reproduce

No response

Environment

- OS: Windows 10
- Environment:
- Runtime:  .NET 8
- Nuget Version: 1.5.374.70
- Component: TcpListenerChannel
- Server:
- Client:

Anything else?

No response

mrsuciu commented 2 months ago

@cho-regin The issues looks to be in the same area targeted by the recent fix https://github.com/OPCFoundation/UA-.NETStandard/pull/2714 Can you confirm ? If not please provide also the call stacks.

cho-regin commented 2 months ago

The fix you mentioned looks like it would fix this issue. I've only run into this deadlock once so I don't think I can reproduce.

mregen commented 2 months ago

supposedly fixed in August release...thanks for reporting.

mregen commented 2 months ago

please retest with August release