mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
* Limit rate of permitted RST frames Motivation: Large number of stream reset frames may be used as a DoS (Denial of Service) vector in an attempt to overload the CPU of the handling server. Modifications: Introduce an additional DoS heuristic which evaluates the rate of incoming stream reset frames. If the rate exceeds that which is permitted then the connection is closed and a `GOAWAY` issued. The allowed rate is configurable but defaults to 200 resets within 30 seconds. This should be acceptable for most applications. Result: Excessive reset frames result in the connection being closed. * review comments * further review comments * add integration test