Welcome! Log In Create A New Profile

Advanced

[nginx] HTTP/2: fixed the NGX_HTTP_V2_MAX_FIELD macro.

Valentin Bartenev
October 26, 2015 10:48AM
details: http://hg.nginx.org/nginx/rev/b78df0822168
branches:
changeset: 6278:b78df0822168
user: Valentin Bartenev <vbart@nginx.com>
date: Mon Oct 26 17:46:13 2015 +0300
description:
HTTP/2: fixed the NGX_HTTP_V2_MAX_FIELD macro.

diffstat:

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

diffs (13 lines):

diff -r b930e598a199 -r b78df0822168 src/http/v2/ngx_http_v2.h
--- a/src/http/v2/ngx_http_v2.h Mon Sep 28 02:32:44 2015 +0300
+++ b/src/http/v2/ngx_http_v2.h Mon Oct 26 17:46:13 2015 +0300
@@ -21,7 +21,8 @@
#define NGX_HTTP_V2_MAX_FRAME_SIZE ((1 << 24) - 1)

#define NGX_HTTP_V2_INT_OCTETS 4
-#define NGX_HTTP_V2_MAX_FIELD ((1 << NGX_HTTP_V2_INT_OCTETS * 7) - 1)
+#define NGX_HTTP_V2_MAX_FIELD \
+ (127 + (1 << (NGX_HTTP_V2_INT_OCTETS - 1) * 7) - 1)

#define NGX_HTTP_V2_DATA_DISCARD 1
#define NGX_HTTP_V2_DATA_ERROR 2

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] HTTP/2: fixed the NGX_HTTP_V2_MAX_FIELD macro.

Valentin Bartenev 332 October 26, 2015 10:48AM



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

Online Users

Guests: 169
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