You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following algorithm is RECOMMENDED for choosing a renewal time:
Select a uniform random time within the suggested window.
...
Otherwise, sleep until the next normal wake time, re-check ARI, and return to Step 1.
(Step "2." above is actually step 5, I dunno why it shows up as 2, I definitely wrote 5)
Anyway, if step 5 is reached, it says to wait until the next waking time, and then "re-check ARI." What does this mean exactly? Poll the endpoint to get the updated info, or to use the previously-polled window that is stored in a cache of some sort? If it is the former, wouldn't we only poll with respect to Retry-After (if set)?
Then, when returning to step 1, we are supposed to choose a new random time within the window. Is that intended? Or is the intention that we choose just 1 random time in the window, then store that (until the window changes) and reuse it, checking against that time when running the algorithm? I guess generating a random time each waking is no more and no less random than choosing 1 random time and reusing it until the window changes.
Thanks, hoping to gain some clarity on these things.
The text was updated successfully, but these errors were encountered:
(Step "2." above is actually step 5, I dunno why it shows up as 2, I definitely wrote 5)
Yeah, that's just markdown being markdown.
What does this mean exactly?
This is a good point. It seems intuitively obvious -- query the ARI endpoint -- but you're right that the section (because it is oriented around describing the RenewalInfo object, rather than client flows) doesn't make that clear. I'll add a new Step 0 which explicitly says that a client should begin by querying the ARI endpoint.
Then, when returning to step 1...
No, the point is that you're not returning to step 1. You're querying the ARI endpoint again, and once you have that response, you then begin at step 1.
Draft 3 says:
(Step "2." above is actually step 5, I dunno why it shows up as 2, I definitely wrote 5)
Anyway, if step 5 is reached, it says to wait until the next waking time, and then "re-check ARI." What does this mean exactly? Poll the endpoint to get the updated info, or to use the previously-polled window that is stored in a cache of some sort? If it is the former, wouldn't we only poll with respect to Retry-After (if set)?
Then, when returning to step 1, we are supposed to choose a new random time within the window. Is that intended? Or is the intention that we choose just 1 random time in the window, then store that (until the window changes) and reuse it, checking against that time when running the algorithm? I guess generating a random time each waking is no more and no less random than choosing 1 random time and reusing it until the window changes.
Thanks, hoping to gain some clarity on these things.
The text was updated successfully, but these errors were encountered: