Tyr Admission Controller - v0.36.1
    Preparing search index...

    Function retryAfterSeconds

    • Whole-second form of a hint, or undefined when the header cannot carry it honestly.

      Retry-After has one-second resolution and is a floor, so a 200ms wait can only be published as Retry-After: 1. That would park a compliant client five times longer than necessary — worse than the backoff it would have chosen on its own, which makes the header actively harmful at short waits.

      So below one second Tyr publishes only x-admission-retry-after-ms and leaves the client's own policy alone. Above it, rounding up costs at most a few hundred milliseconds against a wait already measured in seconds, and the header keeps its guarantee: a caller that obeys it never arrives before capacity exists.

      Parameters

      • hintMs: number

      Returns number | undefined