From 16076cbc2f7800fed66ff9ffc13e125f7b747f35 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 6 Sep 2013 00:17:46 +0900 Subject: [PATCH] Increase NGHTTP2_HD_MAX_ENTRY_SIZE to 3072 --- lib/nghttp2_hd.c | 3 +-- lib/nghttp2_hd.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index 723109f3..04af98ab 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -786,8 +786,7 @@ static int deflate_nv(nghttp2_hd_context *deflater, if(ent) { index = ent->index; } - if(entry_room(nv->namelen, nv->valuelen) - < NGHTTP2_HD_MAX_ENTRY_SIZE) { + if(entry_room(nv->namelen, nv->valuelen) <= NGHTTP2_HD_MAX_ENTRY_SIZE) { nghttp2_hd_entry *new_ent; new_ent = add_hd_table_incremental(deflater, nv); if(!new_ent) { diff --git a/lib/nghttp2_hd.h b/lib/nghttp2_hd.h index a67acc0f..0d1747b1 100644 --- a/lib/nghttp2_hd.h +++ b/lib/nghttp2_hd.h @@ -35,7 +35,7 @@ #define NGHTTP2_INITIAL_EMIT_SET_SIZE 128 #define NGHTTP2_HD_MAX_BUFFER_SIZE 4096 -#define NGHTTP2_HD_MAX_ENTRY_SIZE 1024 +#define NGHTTP2_HD_MAX_ENTRY_SIZE 3072 #define NGHTTP2_HD_ENTRY_OVERHEAD 32 /* This value is sensible to NGHTTP2_HD_MAX_BUFFER_SIZE. Currently,