]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: fixed the NGX_HTTP_V2_MAX_FIELD macro.
authorValentin Bartenev <vbart@nginx.com>
Mon, 26 Oct 2015 14:46:13 +0000 (17:46 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 26 Oct 2015 14:46:13 +0000 (17:46 +0300)
src/http/v2/ngx_http_v2.h

index b7e73c9764fa8fd43a8b899ecf67b67d80ad5e91..462d254a4e3c62e5b22c88778895a60b35571c27 100644 (file)
@@ -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