Skip to content

In-depth lesson · Limit overrun

Typical fixes

Every point the Limit overrun reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 12 of 12
  1. Enforce limits and duplicate checks atomically, using a lock or a database unique constraint in the same step as the write.

    Seen in 15 reports
  2. Bind one-time codes and verification results to a single request and invalidate them after use.

    Seen in 3 reports
  3. Hold an open file handle or use no-follow opens between the check and the use of a path.

    Seen in 3 reports
  4. Take the cache lock around every mutation and refcount change of shared structures.

    Seen in 3 reports
  5. Make payment and retest processing idempotent so a repeated request cannot trigger a second payment.

    Seen in 2 reports
  6. Copy shared memory before validating and converting it.

    Seen in 2 reports
  7. Add database-level constraints to prevent duplicate names and cyclic relationships.

    Seen in 2 reports
  8. Enforce subscriber and workspace limits on the server rather than only in the interface.

    Seen in 2 reports
  9. Consume authorisation codes and refresh tokens atomically so only one token pair is issued.

    Seen in 1 report
  10. Remove approvals synchronously when a new commit is pushed.

    Seen in 1 report
  11. Do not accept workloads until policy enforcement is fully active.

    Seen in 1 report
  12. Sanitise user-controlled identifiers before using them in file paths.

    Seen in 1 report