Rename NGHTTP2_MAX_FRAME_SIZE as NGHTTP2_MAX_FRAME_LENGTH

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-06 21:59:41 +09:00
parent 73563de8d4
commit 55b074e96e
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
/* The maximum payload length of a frame */
/* TODO The spec says the max payload length in HTTP is ((1 << 14) -
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
spec. We just chose the arbitrary size */

View File

@ -532,7 +532,7 @@ static int ensure_write_buffer(uint8_t **buf_ptr, size_t *buflen_ptr,
size_t offset, size_t need)
{
int rv;
if(need + offset > NGHTTP2_MAX_FRAME_SIZE) {
if(need + offset > NGHTTP2_MAX_FRAME_LENGTH) {
return NGHTTP2_ERR_HEADER_COMP;
}
rv = nghttp2_reserve_buffer(buf_ptr, buflen_ptr, offset + need);