The delta-seconds rule specifies a non-negative integer, representing time in seconds.
delta-seconds = 1*DIGIT -
If a cache receives a delta-seconds value larger than the largest positive integer it can represent, or if any of its subsequent - calculations overflows, the cache MUST consider the value to be 2147483648 (2^{31}). A recipient parsing a delta-seconds value MUST use an arithmetic type of at least 31 bits of range, and a sender MUST NOT generate delta-seconds with a value greater than 2147483648. -
-Note that this value (2147483648) might cause implementation issues on some platforms (in particular, those that represent - MAX_INT as 2^{31}-1), and therefore ought to be handled carefullly. +
A recipient parsing a delta-seconds value ought to use an arithmetic type of at least 32 bits of signed integer range. A sender MUST NOT generate a delta-seconds value greater than 2147483647 (32bit INT_MAX, or 2^{31} - 1). +
+If a cache receives a delta-seconds value larger than the largest positive integer it can represent, or if any of its subsequent + calculations overflows, the cache MUST consider the value to be the largest positive integer it can represent.
Index: draft-ietf-httpbis/latest/p6-cache.xml =================================================================== --- draft-ietf-httpbis/latest/p6-cache.xml (revision 2487) +++ draft-ietf-httpbis/latest/p6-cache.xml (revision 2488) @@ -213,15 +213,14 @@