Commit 8e2daae
chore: Limit expiry value to 32 bits.
We use adaptive precision, where we keep "millis" precision if we can,
and switch to seconds precision if the deadline is too large.
This actually was before but now I reduced the cut-off to 4B ms,
or 49 days. Also, the ttl in seconds is now limited to 4B sec,
with larger values quietly rounded down to this limit.
Signed-off-by: Roman Gershman <[email protected]>1 parent b4a5c87 commit 8e2daae
1 file changed
+16
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | | - | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
0 commit comments