Skip to content

H2 flood-protection defaults and RST accounting trip on legitimate traffic #1749

Closed

Description

@FlorentinDUBOIS

The HTTP/2 flood-detector defaults and RST_STREAM accounting trip on legitimate traffic and close connections with GOAWAY(ENHANCE_YOUR_CALM):

  • h2_max_window_update_stream0_per_window is a flat per-second count. A peer returns connection credit as it consumes DATA, at any cadence it chooses (RFC 9113 §6.9), so a fast enough download trips it — including a Sōzu in front of another Sōzu, which acknowledges every half of its connection window.
  • The RST_STREAM lifetime caps never decay: h2_max_rst_stream_abusive_lifetime (50) is reached by a client that cancels 51 requests before their response over the connection's lifetime, and the pending RST queue's 200 bound is a lifetime count.
  • Resets Sōzu decides on its own (idle reaper CANCEL, REFUSED_STREAM from its concurrency limit or buffer pool, STREAM_CLOSED, converter INTERNAL_ERROR on a backend failure) count against the peer's CVE-2025-8671 cap; doc/configure.md says only NoError is exempt and describes it differently.
  • On a backend connection, RST_STREAM frames the backend sends before its response are counted as Rapid Reset.
  • h2_max_rst_stream_per_window (100) and h2_max_glitch_count (100) are below what one tab closing, or one cancelled upload, produces.

Expected: ordinary browsers, large downloads, high-cancellation clients and a Sōzu→Sōzu chain never trip the detector, while Rapid Reset (CVE-2023-44487), MadeYouReset (CVE-2025-8671), WINDOW_UPDATE/PING/SETTINGS/empty-DATA and CONTINUATION floods are still caught.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions