Skip to content

Commit

Permalink
Interpret timeout of zero as indefinite
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg committed Jan 2, 2025
1 parent e2df979 commit c3a0b21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specification/configuration/sdk-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ Timeout is a sub-classification of [duration](#duration): All timeouts are also
durations, but not all durations are timeouts.

For variables that represent a timeout (e.g. exporter timeout), implementations
SHOULD validate that values are positive unless they have good reasons not to (
e.g. backwards compatibility with semantics where a negative or zero value means
indefinite).
SHOULD interpret a value of zero as indefinite. In practice, implementations MAY
treat indefinite as "a very long time" and substitute a very large duration (
e.g. the maximum milliseconds representable by a 32-bit integer).

### String

Expand Down

0 comments on commit c3a0b21

Please sign in to comment.