Commit 16076cbc authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Increase NGHTTP2_HD_MAX_ENTRY_SIZE to 3072

parent 586533be
...@@ -786,8 +786,7 @@ static int deflate_nv(nghttp2_hd_context *deflater, ...@@ -786,8 +786,7 @@ static int deflate_nv(nghttp2_hd_context *deflater,
if(ent) { if(ent) {
index = ent->index; index = ent->index;
} }
if(entry_room(nv->namelen, nv->valuelen) if(entry_room(nv->namelen, nv->valuelen) <= NGHTTP2_HD_MAX_ENTRY_SIZE) {
< NGHTTP2_HD_MAX_ENTRY_SIZE) {
nghttp2_hd_entry *new_ent; nghttp2_hd_entry *new_ent;
new_ent = add_hd_table_incremental(deflater, nv); new_ent = add_hd_table_incremental(deflater, nv);
if(!new_ent) { if(!new_ent) {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define NGHTTP2_INITIAL_EMIT_SET_SIZE 128 #define NGHTTP2_INITIAL_EMIT_SET_SIZE 128
#define NGHTTP2_HD_MAX_BUFFER_SIZE 4096 #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 #define NGHTTP2_HD_ENTRY_OVERHEAD 32
/* This value is sensible to NGHTTP2_HD_MAX_BUFFER_SIZE. Currently, /* This value is sensible to NGHTTP2_HD_MAX_BUFFER_SIZE. Currently,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment