Closed nbarbettini closed 8 years ago
Honestly I prefer seconds for these kinds of values, as they are simpler to reason with. Is there any reason why a timeout would need a sub-second value?
No reason that I can think of.
It is milliseconds in the Java SDK because this is the idiomatic unit of time in Java when no time unit is specified.
I'm guessing doing the idiomatic thing is the case across all of our implementations. It's probably not crucial to update this spec to standardize it, just slightly confusing when referring back to this.
Is
connectionTimeout
in the config in seconds, or milliseconds?In the JSDK, for example, the timeout is specified in milliseconds: https://github.com/stormpath/stormpath-sdk-java/blob/master/api/src/main/java/com/stormpath/sdk/client/ClientBuilder.java#L333