OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.9k stars 926 forks source link

Added a limit to the Channels on the server side and removed "stale" channels #2540

Closed mrsuciu closed 2 months ago

mrsuciu commented 4 months ago

Proposed changes

Added a limit to the number of Channels on the server side and removed "stale" channels. Add option to console client to leak channels and run forever.

Related Issues

Types of changes

What types of changes does your code introduce? Put an x in the boxes that apply. You can also fill these out after creating the PR.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 73.61111% with 38 lines in your changes are missing coverage. Please review.

Project coverage is 54.58%. Comparing base (884ddf3) to head (8a2e9d6).

Files Patch % Lines
...tack/Opc.Ua.Core/Stack/Tcp/TcpTransportListener.cs 68.29% 9 Missing and 4 partials :warning:
Stack/Opc.Ua.Core/Stack/Tcp/TcpListenerChannel.cs 42.10% 7 Missing and 4 partials :warning:
Stack/Opc.Ua.Core/Stack/Tcp/UaSCBinaryChannel.cs 50.00% 5 Missing and 1 partial :warning:
...k/Opc.Ua.Core/Stack/Tcp/UaSCBinaryClientChannel.cs 28.57% 2 Missing and 3 partials :warning:
Libraries/Opc.Ua.Server/Server/StandardServer.cs 71.42% 0 Missing and 2 partials :warning:
...c.Ua.Core/Stack/Tcp/UaSCBinaryChannel.Symmetric.cs 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2540 +/- ## ========================================== - Coverage 54.70% 54.58% -0.13% ========================================== Files 342 342 Lines 65041 65082 +41 Branches 13331 13350 +19 ========================================== - Hits 35581 35522 -59 - Misses 25612 25682 +70 - Partials 3848 3878 +30 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mregen commented 4 months ago

some tests are failing, is all yet updated for the new state?

EthanChangAED commented 3 months ago

@mregen, please review the updates.

mregen commented 3 months ago

@mregen, please review the updates.

testing this next...

mregen commented 2 months ago

tested and looks all good to me.. :shipit: