Increase NGHTTP2_HD_MAX_ENTRY_SIZE to 3072

This commit is contained in:
Tatsuhiro Tsujikawa 2013-09-06 00:17:46 +09:00
parent 586533be2f
commit 16076cbc2f
2 changed files with 2 additions and 3 deletions

View File

@ -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) {

View File

@ -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,