]> git.kaiwu.me - nginx.git/commit
HTTP/2: traffic-based flood detection.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 18 Sep 2019 17:28:12 +0000 (20:28 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 18 Sep 2019 17:28:12 +0000 (20:28 +0300)
commitaf0e284b967d0ecff1abcdce6558ed4635e3e757
treec6690024177ef212f67f375e0fbd60cdbb09010f
parent4d4201fafd46bb97c29a9c86733331d8e7479f54
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.
src/http/v2/ngx_http_v2.c
src/http/v2/ngx_http_v2.h
src/http/v2/ngx_http_v2_filter_module.c