Increase NGHTTP2_HD_MAX_ENTRY_SIZE to 3072
This commit is contained in:
parent
586533be2f
commit
16076cbc2f
|
@ -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 @@
|
||||||
#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,
|
||||||
|
|
Loading…
Reference in New Issue