Rename NGHTTP2_MAX_FRAME_SIZE as NGHTTP2_MAX_FRAME_LENGTH
This commit is contained in:
parent
73563de8d4
commit
55b074e96e
|
@ -36,7 +36,7 @@
|
||||||
/* The maximum payload length of a frame */
|
/* The maximum payload length of a frame */
|
||||||
/* TODO The spec says the max payload length in HTTP is ((1 << 14) -
|
/* TODO The spec says the max payload length in HTTP is ((1 << 14) -
|
||||||
1) */
|
1) */
|
||||||
#define NGHTTP2_MAX_FRAME_SIZE ((1 << 16) - 1)
|
#define NGHTTP2_MAX_FRAME_LENGTH ((1 << 16) - 1)
|
||||||
|
|
||||||
/* The maximum header block length. This is not specified by the
|
/* The maximum header block length. This is not specified by the
|
||||||
spec. We just chose the arbitrary size */
|
spec. We just chose the arbitrary size */
|
||||||
|
|
|
@ -532,7 +532,7 @@ static int ensure_write_buffer(uint8_t **buf_ptr, size_t *buflen_ptr,
|
||||||
size_t offset, size_t need)
|
size_t offset, size_t need)
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
if(need + offset > NGHTTP2_MAX_FRAME_SIZE) {
|
if(need + offset > NGHTTP2_MAX_FRAME_LENGTH) {
|
||||||
return NGHTTP2_ERR_HEADER_COMP;
|
return NGHTTP2_ERR_HEADER_COMP;
|
||||||
}
|
}
|
||||||
rv = nghttp2_reserve_buffer(buf_ptr, buflen_ptr, offset + need);
|
rv = nghttp2_reserve_buffer(buf_ptr, buflen_ptr, offset + need);
|
||||||
|
|
Loading…
Reference in New Issue