Calculation of field Timeout of type TimeSpan in HttpClient doesn't match Timespan definition of MaxValue.
pleilleur opened this issue · 0 comments
pleilleur commented
Timespan.MaxValue
is calculated using long.MaxValue
, while HttpClient
uses int.MaxValue
to define the HttpClient.Timeout
value. This results in an exception when user tries to initialize a Timeout based on TimeSpan.MaxValue
.
As HttpClient.TimeOut
uses TimeSpan
format, shouldn't it use the same scope of values ?