Skip to content

Fix memory leak from undisposed sockets and event handler retention during server restart - #3608

Merged
marcschier merged 4 commits into
OPCFoundation:masterfrom
RicoSuter:fix/dispose-socket-and-event-leaks
Mar 11, 2026
Merged

marcschier merged 4 commits into
OPCFoundation:masterfrom
RicoSuter:fix/dispose-socket-and-event-leaks

Remove duplicate CertificateUpdate unsubscribe (already existed in ma…

d9f8f17
Select commit
Loading
Failed to load commit list.
Azure Pipelines / OPCFoundation.UA-.NETStandard succeeded Mar 11, 2026 in 33m 38s

Build #1.6.20-preview+4fd07dd1ac had test failures

Details

Tests

  • Failed: 2 (0.00%)
  • Passed: 107,302 (97.50%)
  • Other: 2,745 (2.49%)
  • Total: 110,049

Annotations

Check failure on line 1 in Opc.Ua.Client.Tests.ConnectionStabilityTest.ShortHaulStabilityTestAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Opc.Ua.Client.Tests.ConnectionStabilityTest.ShortHaulStabilityTestAsync

  Not all nodes received expected data
Assert.That(condition, Is.True)
  Expected: True
  But was:  False
Raw output
   at NUnit.Framework.Legacy.ClassicAssert.IsTrue(Boolean condition, String message, Object[] args)
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.RunStabilityTestAsync(Int32 testDurationMinutes) in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 422
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.RunStabilityTestAsync(Int32 testDurationMinutes) in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 456
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.ShortHaulStabilityTestAsync() in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 87
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.ShortHaulStabilityTestAsync() in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 91
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at NUnit.Framework.Legacy.ClassicAssert.IsTrue(Boolean condition, String message, Object[] args)
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.RunStabilityTestAsync(Int32 testDurationMinutes) in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 422
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)

Check failure on line 1 in Opc.Ua.Client.Tests.ConnectionStabilityTest.ShortHaulStabilityTestAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Opc.Ua.Client.Tests.ConnectionStabilityTest.ShortHaulStabilityTestAsync

  Test encountered 1 errors
Assert.That(actual, Is.EqualTo(expected))
  Expected: 0
  But was:  1
Raw output
   at NUnit.Framework.Legacy.ClassicAssert.AreEqual(Object expected, Object actual, String message, Object[] args)
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.RunStabilityTestAsync(Int32 testDurationMinutes) in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 423
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.RunStabilityTestAsync(Int32 testDurationMinutes) in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 456
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.ShortHaulStabilityTestAsync() in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 87
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.ShortHaulStabilityTestAsync() in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 91
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at NUnit.Framework.Legacy.ClassicAssert.AreEqual(Object expected, Object actual, String message, Object[] args)
   at Opc.Ua.Client.Tests.ConnectionStabilityTest.RunStabilityTestAsync(Int32 testDurationMinutes) in /_/Tests/Opc.Ua.Client.Tests/ConnectionStabilityTest.cs:line 423
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)