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:
+2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user