aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-10-07 13:22:42 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-10-07 13:22:42 +0300
commit434f11bf3f4c9c8466a946c775441ecd6f768c13 (patch)
tree4b60637010e15bf84d539d2d027a31deddc1f297 /src/http/ngx_http_core_module.c
parent0c33e484a4333fe2a343baf3aeefae3212534db3 (diff)
downloadnginx-434f11bf3f4c9c8466a946c775441ecd6f768c13.tar.gz
nginx-434f11bf3f4c9c8466a946c775441ecd6f768c13.zip
HTTP/3: traffic-based flood detection.
With this patch, all traffic over HTTP/3 bidi and uni streams is counted in the h3c->total_bytes field, and payload traffic is counted in the h3c->payload_bytes field. As long as total traffic is many times larger than payload traffic, we consider this to be a flood. Request header traffic is counted as if all fields are literal. Response header traffic is counted as is.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
0 files changed, 0 insertions, 0 deletions