You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
ArgumentOutOfRangeException is thrown.
Number must be either non-negative and less than or equal to Int32.MaxValue or -1.
Parameter name: dueTime.
Call Stack:
Microsoft.Azure.ServiceBus.Amqp.ActiveClientLinkManager.ChangeRenewTimer(Microsoft.Azure.ServiceBus.Amqp.ActiveClientLinkObject activeClientLinkObject, System.TimeSpan dueTime) Line 149
Microsoft.Azure.ServiceBus.Amqp.ActiveClientLinkManager.SetRenewCbsTokenTimer(Microsoft.Azure.ServiceBus.Amqp.ActiveClientLinkObject activeClientLinkObject) Line 137
Microsoft.Azure.ServiceBus.Amqp.ActiveClientLinkManager.RenewCbsTokenAsync(Microsoft.Azure.ServiceBus.Amqp.ActiveClientLinkObject activeClientLinkObject) Line 111
The interval here becomes negative. ActiveClientLinkManager.TokenRefreshBuffer is 10 seconds according to the debugger. Because the refresh buffer is subtracted this makes line 128 incorrect - it doesn't take it into consideration.
Also I think that even if it wasn't subtracted, the code would still have issues because the DateTime.UtcNow is called twice, which could return different times which in turn makes the check on line 128 obsolete.
Versions
OS platform and version: Windows 10, 1803
.NET Version: NETCore 2.2
NuGet package version: 3.3
The text was updated successfully, but these errors were encountered:
Actual Behavior
ArgumentOutOfRangeException is thrown.
Number must be either non-negative and less than or equal to Int32.MaxValue or -1.
Parameter name: dueTime.
Call Stack:
azure-service-bus-dotnet/src/Microsoft.Azure.ServiceBus/Amqp/ActiveClientLinkManager.cs
Lines 126 to 136 in e1f6e53
The interval here becomes negative.
ActiveClientLinkManager.TokenRefreshBuffer
is 10 seconds according to the debugger. Because the refresh buffer is subtracted this makes line 128 incorrect - it doesn't take it into consideration.Also I think that even if it wasn't subtracted, the code would still have issues because the
DateTime.UtcNow
is called twice, which could return different times which in turn makes the check on line 128 obsolete.Versions
The text was updated successfully, but these errors were encountered: