diff options
author | Ruslan Ermilov <ru@nginx.com> | 2018-11-06 16:29:35 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2018-11-06 16:29:35 +0300 |
commit | 8ec4146e1aad3a4fc0b19a024f8ef3516791e30c (patch) | |
tree | f2359480891331cc97e5593b44e5b8ac55cc14b7 /src/http/v2/ngx_http_v2.h | |
parent | 9cd9526ba68a3dcfc763a3f7693ccb4f48e855fb (diff) | |
download | nginx-8ec4146e1aad3a4fc0b19a024f8ef3516791e30c.tar.gz nginx-8ec4146e1aad3a4fc0b19a024f8ef3516791e30c.zip |
HTTP/2: flood detection.
Fixed uncontrolled memory growth in case peer is flooding us with
some frames (e.g., SETTINGS and PING) and doesn't read data. Fix
is to limit the number of allocated control frames.
Diffstat (limited to 'src/http/v2/ngx_http_v2.h')
-rw-r--r-- | src/http/v2/ngx_http_v2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/v2/ngx_http_v2.h b/src/http/v2/ngx_http_v2.h index ebd0e77c0..e8eaebb25 100644 --- a/src/http/v2/ngx_http_v2.h +++ b/src/http/v2/ngx_http_v2.h @@ -120,6 +120,7 @@ struct ngx_http_v2_connection_s { ngx_http_connection_t *http_connection; ngx_uint_t processing; + ngx_uint_t frames; ngx_uint_t pushing; ngx_uint_t concurrent_pushes; |