fix(opcuaclient): split the per-endpoint connect budget into reachability + session phases (#912)

PerEndpointConnectTimeout (3 s) now bounds only TCP + discovery, so failover past a
dead endpoint stays fast. The new SessionCreateTimeout (10 s) bounds OpenSecureChannel
+ CreateSession on an endpoint that answered discovery, where the client-side cert and
crypto work lives (#910). 2 x (3 + 10) s stays inside the host's 30 s initialise bound.
Expiries name the budget that ran out; both budgets must be positive; AdminUI form
carries the new field so a save does not drop it; driver docs updated.

Closes #912
This commit is contained in:
Joseph Doherty
2026-11-15 16:55:22 -05:00
parent 8ff424fc5a
commit 678498a4a6
6 changed files with 150 additions and 29 deletions
@@ -100,6 +100,7 @@ public sealed class OpcUaClientDriverPageFormSerializationTests
UserCertificatePath = @"C:\certs\user.pfx",
UserCertificatePassword = "certpass",
PerEndpointConnectTimeout = TimeSpan.FromSeconds(4),
SessionCreateTimeout = TimeSpan.FromSeconds(17),
Timeout = TimeSpan.FromSeconds(12),
SessionTimeout = TimeSpan.FromSeconds(150),
KeepAliveInterval = TimeSpan.FromSeconds(7),
@@ -130,6 +131,7 @@ public sealed class OpcUaClientDriverPageFormSerializationTests
.ToRecord(endpointUrls).UserCertificatePath.ShouldBe("plant1/user.pfx");
result.UserCertificatePassword.ShouldBe("certpass");
result.PerEndpointConnectTimeout.ShouldBe(TimeSpan.FromSeconds(4));
result.SessionCreateTimeout.ShouldBe(TimeSpan.FromSeconds(17)); // #912 — the form must not drop it on save
result.Timeout.ShouldBe(TimeSpan.FromSeconds(12));
result.SessionTimeout.ShouldBe(TimeSpan.FromSeconds(150));
result.KeepAliveInterval.ShouldBe(TimeSpan.FromSeconds(7));