-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-System.ThreadinguntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Description
Description
In the followin line an exception is thrown when timeout is > 0xfffffffe
runtime/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs
Lines 837 to 838 in 57bfe47
| if (dueTm > MaxSupportedTimeout) | |
| throw new ArgumentOutOfRangeException(nameof(dueTime), SR.ArgumentOutOfRange_TimeoutTooLarge); |
| internal const uint MaxSupportedTimeout = 0xfffffffe; |
The exception message is:
runtime/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Lines 1856 to 1858 in 00c1692
| <data name="ArgumentOutOfRange_TimeoutTooLarge" xml:space="preserve"> | |
| <value>Time-out interval must be less than 2^32-2.</value> | |
| </data> |
Reproduction Steps
Expected behavior
Message should be "less than or equal to 2^32-2" or "less than 2^32-1"
Actual behavior
Wrong exception message
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
area-System.ThreadinguntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner