HT2::RapidResetProtection::Config
Inherits Struct < Value < Object
Configuration for rapid reset protection
Constructors
new(max_streams_per_second : Int32 = 100, max_rapid_resets_per_minute : Int32 = 50, rapid_reset_threshold_ms : Float64 = 100.0, ban_duration : Time::Span = 5.minutes, pending_stream_limit : Int32 = 1000)
SourceInstance methods
ban_duration
Sourceban_duration=(ban_duration : Time::Span)
Sourcemax_rapid_resets_per_minute
Sourcemax_rapid_resets_per_minute=(max_rapid_resets_per_minute : Int32)
Sourcemax_streams_per_second
Sourcemax_streams_per_second=(max_streams_per_second : Int32)
Sourcepending_stream_limit
Sourcepending_stream_limit=(pending_stream_limit : Int32)
Sourcerapid_reset_threshold_ms
Sourcerapid_reset_threshold_ms=(rapid_reset_threshold_ms : Float64)
Source