Welcome! Log In Create A New Profile

Advanced

[nginx] HTTP/2: handle duplicate INITIAL_WINDOW_SIZE settings.

January 30, 2018 07:28AM
details: http://hg.nginx.org/nginx/rev/e11a0679d349
branches:
changeset: 7190:e11a0679d349
user: Ruslan Ermilov <ru@nginx.com>
date: Mon Jan 29 15:54:36 2018 +0300
description:
HTTP/2: handle duplicate INITIAL_WINDOW_SIZE settings.

diffstat:

src/http/v2/ngx_http_v2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r cbf59d483c9c -r e11a0679d349 src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c Tue Jan 16 13:52:03 2018 +0300
+++ b/src/http/v2/ngx_http_v2.c Mon Jan 29 15:54:36 2018 +0300
@@ -2000,8 +2000,6 @@ ngx_http_v2_state_settings_params(ngx_ht
}

window_delta = value - h2c->init_window;
-
- h2c->init_window = value;
break;

case NGX_HTTP_V2_MAX_FRAME_SIZE_SETTING:
@@ -2037,6 +2035,8 @@ ngx_http_v2_state_settings_params(ngx_ht
ngx_http_v2_queue_ordered_frame(h2c, frame);

if (window_delta) {
+ h2c->init_window += window_delta;
+
if (ngx_http_v2_adjust_windows(h2c, window_delta) != NGX_OK) {
return ngx_http_v2_connection_error(h2c,
NGX_HTTP_V2_INTERNAL_ERROR);
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] HTTP/2: handle duplicate INITIAL_WINDOW_SIZE settings.

ru@nginx.com 673 January 30, 2018 07:28AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 320
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready