Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little more rate limit tweaking for v0.4.4 #142

Merged
merged 8 commits into from
Nov 28, 2023

Commits on Nov 27, 2023

  1. Configuration menu
    Copy the full SHA
    78034ef View commit details
    Browse the repository at this point in the history
  2. Move retry-after header parsing, support full spec

    This logic has gotten too complex and is probably going to need multiple call-sites, so it doesn't belong directly in the exception constructor anymore.
    Mr0grog committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    ae44995 View commit details
    Browse the repository at this point in the history
  3. Always delay at least 60 seconds for 429 responses

    The 429 status code is a bit special -- the server is warning us we're going to get blocked if we don't slow it down. At current, the Wayback Machine has a 1 minute window for evaluating good behavior, so instead of pausing for the default backoff time, pause for at least 1 minute (if the default backoff time winds up being more, then pause for that).
    Mr0grog committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    3d58746 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b413c97 View commit details
    Browse the repository at this point in the history
  5. It turns out total_time has always been a lie

    I'm not sure how we wound up calculating `total_time` as the sum of delays instead of the actual time taken, but we certainly did, and it makes no sense.
    Mr0grog committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    ca49e1b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    694eab8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ed41250 View commit details
    Browse the repository at this point in the history
  8. Add release note

    Mr0grog committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    d5b1a24 View commit details
    Browse the repository at this point in the history