Skip to content

feat(h2): make flood detection thresholds configurable via listener config #1211

Closed

Description

@FlorentinDUBOIS

Currently all flood detection constants (MAX_RST_STREAM_PER_WINDOW=100, MAX_PING_PER_WINDOW=100, MAX_SETTINGS_PER_WINDOW=50, etc.) are compile-time constants. Production operators cannot tune them without recompilation.

Add optional fields to HttpListenerConfig/HttpsListenerConfig proto to allow runtime configuration, falling back to current defaults.

Reference: PR #1209 review finding G-5.

Activity

  1. added
    h2-mux
    on Mar 14, 2026
  2. FlorentinDUBOIS commented on Mar 14, 2026

    @FlorentinDUBOIS
    CollaboratorAuthor

    Implemented in 03942c1 on feat/h2-mux. Added 6 configurable fields to HttpListenerConfig/HttpsListenerConfig protobuf (h2_max_rst_stream_per_window, h2_max_ping_per_window, h2_max_settings_per_window, h2_max_empty_data_per_window, h2_max_continuation_frames, h2_max_glitch_count) with H2FloodConfig struct and fallback to compile-time defaults.

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

    enhancementh2-mux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions