From a987f81dd19210bc30b62591db331e31d3d74089 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 13 Aug 2019 15:43:36 +0300 Subject: 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. --- src/http/v2/ngx_http_v2.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/http/v2/ngx_http_v2.h') 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; -- cgit