comparison src/http/v2/ngx_http_v2.h @ 6278:b78df0822168

HTTP/2: fixed the NGX_HTTP_V2_MAX_FIELD macro.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 26 Oct 2015 17:46:13 +0300
parents 081a073e5164
children 1f26bf65b1bc
comparison
equal deleted inserted replaced
6277:b930e598a199 6278:b78df0822168
19 #define NGX_HTTP_V2_STATE_BUFFER_SIZE 16 19 #define NGX_HTTP_V2_STATE_BUFFER_SIZE 16
20 20
21 #define NGX_HTTP_V2_MAX_FRAME_SIZE ((1 << 24) - 1) 21 #define NGX_HTTP_V2_MAX_FRAME_SIZE ((1 << 24) - 1)
22 22
23 #define NGX_HTTP_V2_INT_OCTETS 4 23 #define NGX_HTTP_V2_INT_OCTETS 4
24 #define NGX_HTTP_V2_MAX_FIELD ((1 << NGX_HTTP_V2_INT_OCTETS * 7) - 1) 24 #define NGX_HTTP_V2_MAX_FIELD \
25 (127 + (1 << (NGX_HTTP_V2_INT_OCTETS - 1) * 7) - 1)
25 26
26 #define NGX_HTTP_V2_DATA_DISCARD 1 27 #define NGX_HTTP_V2_DATA_DISCARD 1
27 #define NGX_HTTP_V2_DATA_ERROR 2 28 #define NGX_HTTP_V2_DATA_ERROR 2
28 #define NGX_HTTP_V2_DATA_INTERNAL_ERROR 3 29 #define NGX_HTTP_V2_DATA_INTERNAL_ERROR 3
29 30