Files
swift-nio-http2/IntegrationTests
Aryan Shah d6f5f25943 Rate-limit PING, SETTINGS, PRIORITY, ALTSVC, and ORIGIN frames (#561)
### Motivation

We currently mitigate against receiving an excessive numbers of
RST_STREAM frames, empty DATA frames, or encountering stream errors in a
given time window.

Receiving excessive numbers of PING, SETTINGS, PRIORITY, ALTSVC, or
ORIGIN frames also results in the endpoint performing unnecessary work.
As such, this PR adds these five frames to the current rate-limiting
mechanism.

### Modifications

- Updated `DOSHeuristics` to also rate-limit PING, SETTINGS, PRIORITY,
ALTSVC, and ORIGIN frames.
- Added a new `controlFrameRateLimit` property to
`NIOHTTP2Handler.ConnectionConfiguration`.
- Plumbed the configuration argument to `NIOHTTP2Handler` initializers.

### Result

Mechanism in place to avoid endpoints from being overwhelmed by
excessive PING, SETTINGS, PRIORITY, ALTSVC, or ORIGIN frames.
2026-08-18 17:43:05 +01:00
..
2024-10-30 15:22:05 +00:00
2024-10-30 15:22:05 +00:00
2024-10-30 15:22:05 +00:00