OPCFoundation / UA-.NETStandard

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

KeepAliveInterval is calculated wrong #2697

Closed BoBiene closed 3 months ago

BoBiene commented 3 months ago

Type of issue

Current Behavior

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'period') at System.Threading.PeriodicTimer..ctor(TimeSpan period) at Opc.Ua.Client.Subscription.StartKeepAliveTimer() at Opc.Ua.Client.Subscription.CreateOrModifySubscription(Boolean created, UInt32 subscriptionId, Double revisedPublishingInterval, UInt32 revisedKeepAliveCount, UInt32 revisedLifetimeCounter) at Opc.Ua.Client.Subscription.CreateSubscription(UInt32 subscriptionId, Double revisedPublishingInterval, UInt32 revisedKeepAliveCount, UInt32 revisedLifetimeCounter) at Opc.Ua.Client.Subscription.Create()

Expected Behavior

m_keepAliveInterval should never get below kMinKeepAliveTimerInterval

Steps To Reproduce

No response

Environment

- OS:
- Environment:
- Runtime:
- Nuget Version:
- Component:
- Server:
- Client:

Anything else?

No response