comparison src/http/v2/ngx_http_v2.h @ 7385:1c6b6163c039 stable-1.14

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.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 06 Nov 2018 16:29:35 +0300
parents 87e9e4aabf1b
children e7f19d268c72
comparison
equal deleted inserted replaced
7384:fdc19a3289c1 7385:1c6b6163c039
118 struct ngx_http_v2_connection_s { 118 struct ngx_http_v2_connection_s {
119 ngx_connection_t *connection; 119 ngx_connection_t *connection;
120 ngx_http_connection_t *http_connection; 120 ngx_http_connection_t *http_connection;
121 121
122 ngx_uint_t processing; 122 ngx_uint_t processing;
123 ngx_uint_t frames;
123 124
124 ngx_uint_t pushing; 125 ngx_uint_t pushing;
125 ngx_uint_t concurrent_pushes; 126 ngx_uint_t concurrent_pushes;
126 127
127 size_t send_window; 128 size_t send_window;