commit | e6c5474adeca4c9545c4d7e9dee64e5c4f09f40b | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Wed Sep 18 20:28:12 2019 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Wed Sep 18 20:28:12 2019 +0300 |
tree | c6690024177ef212f67f375e0fbd60cdbb09010f | |
parent | 9bf34eaa0876c04583569fac60e4c05afa23cf4b [diff] |
HTTP/2: traffic-based flood detection. With this patch, all traffic over an HTTP/2 connection is counted in the h2c->total_bytes field, and payload traffic is counted in the h2c->payload_bytes field. As long as total traffic is many times larger than payload traffic, we consider this to be a flood.