Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clarification of Retry-After, wake times, and polling intervals #70

@mholt

Description

@mholt

Draft 3 says:

The following algorithm is RECOMMENDED for choosing a renewal time:

  1. Select a uniform random time within the suggested window.
    ...
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions