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:40 +0300
committerRuslan Ermilov <ru@nginx.com>2019-08-13 15:43:40 +0300
commit5ae726912654da10a9a81b2c8436829f3e94f69f (patch)
tree31a0555449d15d341d0c0f1812b1fb11f8f647d4 /src/http/v2/ngx_http_v2.h
parenta987f81dd19210bc30b62591db331e31d3d74089 (diff)
downloadnginx-5ae726912654da10a9a81b2c8436829f3e94f69f.tar.gz
nginx-5ae726912654da10a9a81b2c8436829f3e94f69f.tar.bz2
HTTP/2: limited number of PRIORITY frames.
Fixed excessive CPU usage caused by a peer that continuously shuffles priority of streams. Fix is to limit the number of PRIORITY frames.
Diffstat (limited to 'src/http/v2/ngx_http_v2.h')
-rw-r--r--src/http/v2/ngx_http_v2.h1
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 715b7d30c..69d55d1cb 100644
--- a/src/http/v2/ngx_http_v2.h
+++ b/src/http/v2/ngx_http_v2.h
@@ -122,6 +122,7 @@ struct ngx_http_v2_connection_s {
ngx_uint_t processing;
ngx_uint_t frames;
ngx_uint_t idle;
+ ngx_uint_t priority_limit;
ngx_uint_t pushing;
ngx_uint_t concurrent_pushes;