summaryrefslogtreecommitdiffhomepage
path: root/src/http/v2/ngx_http_v2.h
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2019-08-13 15:43:36 +0300
committerRuslan Ermilov <ru@nginx.com>2019-08-13 15:43:36 +0300
commita987f81dd19210bc30b62591db331e31d3d74089 (patch)
tree9cf48df4a1d391abde117309eef61293f9a8f0de /src/http/v2/ngx_http_v2.h
parent6dfbc8b1c2116f362bb871efebbf9df576738e89 (diff)
downloadnginx-a987f81dd19210bc30b62591db331e31d3d74089.tar.gz
nginx-a987f81dd19210bc30b62591db331e31d3d74089.tar.bz2
HTTP/2: limited number of DATA frames.
Fixed excessive memory growth and CPU usage if stream windows are manipulated in a way that results in generating many small DATA frames. Fix is to limit the number of simultaneously allocated DATA frames.
Diffstat (limited to 'src/http/v2/ngx_http_v2.h')
-rw-r--r--src/http/v2/ngx_http_v2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/v2/ngx_http_v2.h b/src/http/v2/ngx_http_v2.h
index bec22160e..715b7d30c 100644
--- a/src/http/v2/ngx_http_v2.h
+++ b/src/http/v2/ngx_http_v2.h
@@ -192,6 +192,8 @@ struct ngx_http_v2_stream_s {
ngx_buf_t *preread;
+ ngx_uint_t frames;
+
ngx_http_v2_out_frame_t *free_frames;
ngx_chain_t *free_frame_headers;
ngx_chain_t *free_bufs;