PlayFab / consuldotnet

.NET API for Consul (http://www.consul.io/)
Apache License 2.0
692 stars 193 forks source link

Does ConsulClient properly handle infinite TimeSpan values? #107

Closed smarts closed 6 years ago

smarts commented 6 years ago

if i were to set ConsulClientConfiguration.WaitTime (for example) to Timeout.InfiniteTimeSpan would this library handle the value properly?

highlyunavailable commented 6 years ago

It will not, in the case of Timespans that get converted to Go Durations (e.g. "10s") to be passed to Consul, since the infinity case is not handled, but existing .NET functionality such as setting HttpClient timeouts will.