Skip to content

Shorter rate limit from a later response replaces longer one #5945

Closed

Description

@sentry-junior

ExtractRateLimits keeps the longest limit within one header, because it sorts by RetryAfter. Across responses, it overwrites the stored reset time (HttpTransportBase.cs#L282-L295). A later response with a shorter limit for a category that is already limited ends the longer limit early, and the SDK starts sending that category before the quota expires.

  • The spec says: "If a new rate limit is shorter than an already stored rate limit, then keep the longer one."

@itsrayeedscodespace reported this bug in the Rust SDK in getsentry/sentry-rust#1409. A check of the other SDKs found the same behavior here.

via @szokeasaurusrex.

--

View Session [Sentry]

Activity

  1. linear-code commented on Nov 16, 2026

    @linear-code
  2. added
    .NET
    Bug
    on Nov 16, 2026
  3. added a commit that references this issue on Nov 17, 2026
    53160b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETBug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions